This code returns an error #13 (Type Mismatch) and no new mail dialog is shown. This only happends with Outlook 2007. Tried on WinXP, VISTA and Win7 with the same result.
Any ideas anyone?
IF ISCLEAR(objMAPI) THEN
CREATE(objMAPI);
objMAPI.ToName('john(at)doe.com'); <-- Can't post "at", is inreality the "at" sign.
objMAPI.Subject('Test of mail function');
objMAPI.AddBodyText('Row 1');
objMAPI.AddBodyText('Row 2');
IF (Filename <> '') AND FILE.EXISTS(Filename) THEN
objMAPI.AttachFileName(Filename);
objMAPI.OpenDialog(TRUE);
objMAPI.Send;
IF (objMAPI.ErrorStatus <> 0) THEN
ERROR(objMAPI.ErrorDescription);
0
Comments
Did you find a solution to this problem? Can you tell us what version of NAV this occured with?
I get this issue with NAV 2009 SP1
Thanks,
Phil Avis
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
'Navision Attain ApplicationHandler'.MAPIHandler