sending multiple attchements by codeunit 397 is simple
....just do this ....
in cu397 in function NewMessage()....u need to attach 2 more param
1. mltiattach ---- boolean
2. myattachrec --- a record variable of a custom table which will have the path to different attachements.
IF multiattach THEN
Repeat
BSTRConverterAttachFileName.ResetBSTR;
BSTRConverterAttachFileName.AppendNextStringPortion(myattachrec.filepath);
OAttachments := OSendMail.Attachments;
OAttachment := OAttachments.Add(BSTRConverterAttachFileName);
Until myattachrec.next = 0;
Hope u will take the clue ...and can create the custom table....
If u stiil need more clarification ....then i will send u the fob.
Dear Sankar
I hope you are using Nav ver 4.0.....
If so then you need not declare BSTRConverterAttachfilename because
it is already declared in C/AL global.
the type is Automation and subtype is 'Navision Attain Hash 1.0'.BSTRConverter.
Comments
anyway... there will be 2 or 3 pages of posts.
http://www.mibuso.com/forum/search.php
http://www.BiloBeauty.com
http://www.autismspeaks.org
if u want i can send u the code....
Please send me the code and procedures how to sent two attachments..
Thanks in advance....
sending multiple attchements by codeunit 397 is simple
....just do this ....
in cu397 in function NewMessage()....u need to attach 2 more param
1. mltiattach ---- boolean
2. myattachrec --- a record variable of a custom table which will have the path to different attachements.
IF multiattach THEN
Repeat
BSTRConverterAttachFileName.ResetBSTR;
BSTRConverterAttachFileName.AppendNextStringPortion(myattachrec.filepath);
OAttachments := OSendMail.Attachments;
OAttachment := OAttachments.Add(BSTRConverterAttachFileName);
Until myattachrec.next = 0;
Hope u will take the clue ...and can create the custom table....
If u stiil need more clarification ....then i will send u the fob.
Thanks for the reply...
I have small query.. How to declare BSTRConverterAttachFileName ?
If possible please send me the fob..
Many thanks SMK... Thanks again.
I hope you are using Nav ver 4.0.....
If so then you need not declare BSTRConverterAttachfilename because
it is already declared in C/AL global.
the type is Automation and subtype is 'Navision Attain Hash 1.0'.BSTRConverter.
I am using navision 3.7. Is this automation is available in 3.7 ? Kindly reply...
Thanks in advance SMK..