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
0
Comments
Here is two (w/Code) to get you going...
http://www.mibuso.com/forum/viewtopic.php?t=929
http://www.mibuso.com/forum/viewtopic.php?t=2442
http://www.BiloBeauty.com
http://www.autismspeaks.org