Options

Problem with MAPI handler and Outlook 2007

Cyber-JediCyber-Jedi Member Posts: 25
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);

Comments

  • Options
    PhilipAvisPhilipAvis Member Posts: 10
    Cyber-Jedi,

    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
  • Options
    ara3nara3n Member Posts: 9,256
    Is there a reason why you are using mapi and not SMTP?
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    PhilipAvisPhilipAvis Member Posts: 10
    Yes, I'd like to prepare the E-mail then open it for the user to finish editing before sending.
  • Options
    TimSimmondsTimSimmonds Member Posts: 47
    Did anybody solve this issue? We have it, running 360 with Office 2007.

    'Navision Attain ApplicationHandler'.MAPIHandler
Sign In or Register to comment.