Options

reg : Mailing with attachements from within navision

raju_navraju_nav Member Posts: 41
Hi all,


I have to send a mail from within navision which also should include an attachments with it . Is there any coding for it.

I have tried with the codeunit mail using the NewMessage() function. Its not working. I just created a new function which goes like this. The functionality which i had created only sends a mail to the concerned person without any attachments.


// Function Name
NewMail(ToName : Text[30];Sub : Text[30];Body : Text[250]) //


//Coding starts here

IF ISCLEAR(MAPIHandler) THEN
CREATE(MAPIHandler);

ErrorNo :=0;
MAPIHandler.ToName := ToName;
MAPIHandler.Subject := Sub;
MAPIHandler.Body := Body;
MAPIHandler.Send;



Is there any option of sending the attachements using this code ....... If exists ..pls let me know.


Thanks in Advance

Raj.
A.RajaManikkam

Comments

Sign In or Register to comment.