I use codeunit 397 to send mail like below
Mail.NewMessage(‘chao_ji@hotmail.com’,’’,‘Subject’,‘Body’,’’,FALSE);
The system show error “Rintime Error” and Navision is blockecd
But if I set OSendMail.OpenDialog := Ture
Mail.NewMessage(‘chao_ji@hotmail.com’,’’,‘Subject’,‘Body’,’’,True);
The system is runing normal and I must to send the mail manual.
DaveT
2
Hi Chao,
Firstly, welcome to the Dynamics User Group!
What version of Nav are you using?
There are problems with some version of OLHANDLER.DLL (search the forum for post on this)
The Version is NAV 2009 R2 running on windows XP SP3
Thanks;
DaveT
4
Hi Chao,
Did you install the version of Nav or running from a folder/shortcut?
Try re-installing the Nav client.
Have you tried codeunit 400 SMTP Mail ?
Hi Dave
Yes, I install the version of NAV via NAV 2009 R2 pack.
I have try it on several computers. The error is same. Is our Exchange server wrong in any config?
Thanks;
Hi Manish
I have tried codeunit 400 and it’s working normal
Thanks;
That’s g8.
Please verify that solved you problem 
chao_ji
10
I want use codeunti 397, because I want get Mail GUID.