Save e-mails in the draftfolder using codeunit 397 mail
hawkeye
Member Posts: 51
I want to create a number of mails but I don´t want them to be send or opened but just to be saved in the draftfolder in outlook 2003.
i´ve tried to use the mailcodeunit 397 and the NewMessage function.
If I set the OpenDialog to True I get 100 (or so) open mails, If I set the OpenDialog to False all the mails will be send automatical.
should I use the mail management codunit 6229 instead? Using this codeunit I just cant see how to attach files or make a bodytext.
i´ve tried to use the mailcodeunit 397 and the NewMessage function.
If I set the OpenDialog to True I get 100 (or so) open mails, If I set the OpenDialog to False all the mails will be send automatical.
should I use the mail management codunit 6229 instead? Using this codeunit I just cant see how to attach files or make a bodytext.
0
Comments
-
I would recommend using Outlook as an automation variable instead and create a custom codeunit to do this. Are you familiar with this method?0
-
I am familiar with the method but have no experince whit it. It would take me too long time. Then its a better alternative to tell the customer that when they push the button all mails will be send and maybe make it posible to check the reminders in Navision.
It would just be nice if there was an easy sollution so they could make a check on their reminders in outlook instead before they send them.0 -
Hi Hawkeye,
This is a common problem - you will need to upgrade the version of the OLHANDLER.DLL in the client direct - use the one from Version 5.0 and it should work for you.0 -
Same result im sorry

I want the mails to be saved in the draft-folder in outlook and NOT to be send before I in outlook pushes the "send" button on every mail. And then I don´t want all the messages to pop up. Whit codeunit 397 I can only see that I can´t have both
Our customer uses the automatic Recieve/send every minute and it is not an alternative to turn that off.0 -
Hi Hawkeye,
Sorry mis-read the post - you will need to go the other way
There was a "Undocumented Feature" that mails stayed in the drafts without sending and updating the OLHANDLER.DLL fixed so reversing the process should work. Try using an older version of the OLHANDLER.DLL (I think from Version 4.0 SP1 should do)0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions