I need NAV to generate mails with more than one attachment, that's why I try to send mails using the MAPISession & MAPIMessages OCX.
When this code is executed, the error "
The call to member Send failed. MAPIMessages returned the following message: Unspecified Failure has occurred" is displayed:
variables used:
ocxMAPISession OCX Microsoft MAPI Session Control, version 6.0
ocxMAPIMessages OCX Microsoft MAPI Messages Control, version 6.0
ocxMAPISession.SignOn;
ocxMAPIMessages.SessionID := ocxMAPISession.SessionID;
ocxMAPIMessages.Compose;
ocxMAPIMessages.RecipAddress := 'email@address.com';
ocxMAPIMessages.MsgSubject := 'Subject of mail';
ocxMAPIMessages.MsgNoteText := 'Body of mail';
ocxMAPIMessages.Send;
ocxMAPISession.SignOff;
Does anyone has a clue, why this example cannot be executed correctly?
Outlook 2007 is used BTW.