Good news. Received a message from Microsoft today. They have found the reason and released a hotfix.
Hi! After upgrading to Navison version 4x we got problems sending emails using codeunit 397 (E-Mail).
The problem seems to be with the new version in use with outlook 2003 sp2.
I've read the previous post about the problem, but haven't found a solution yet.
We have tried to install the OleHandler.dll (was in fact the fix that Microsoft came up with) and Unistalling fax services but are still facing the same problem.
Do anyone have a suggestion or an solution??
I get the 0x00000a82 error from OApplication.Logon in the NewMessage function in codeunit 397 when I debug.
OApplication is an automation ='NS Outlook Synchronization Handler'.OApplication.
If I search msdn I find a description about the error that say:
NERR_DfsInternalError- A Dfs internal error occurred.
0
Answers
The only two ways to do this is to either use MAPI directly instead of the new automation objects, or downgrade to Office 2003 SP1. I remember seeing some code on CustomerSource that detailed some changes to the Mail CU, but I couldn't get it to work fully.
I tried to use the old mail codeunit from 3.7, it does create a new mail but the Mail.AddBodyLine() function does not work....i am wondering if i go through all the trouble to downgrade outlook to SP1, will that AddBodyLine() function work in the new Mail codeunit in 4.0?