Hi,
When the transaction was over i have to sent the mail to the customer. So i used the SMTP codeunit and passed the parameters. It's working fine . But i need to write the contents inside the mail so i used the function Append body in SMTP codeunit . For example
i have declared the text variables:
txtBody := 'Sir/ Madam,';
txtcontent := 'Please find the attachment';
txtcontent1 := 'Regards';
txtcontent2 := 'USERID';
Then i called the function
SMTPCU.CreateMessage(SenderName,txtSenderEmail,txtReceiver,txtSubject,txtBody,TRUE);
SMTPCU.AddAttachment(recHPSetup."PDF Path"+FileName);
SMTPCU.AppendBody(txtcontent);
SMTPCU.AppendBody(txtcontent1);
SMTPCU.AppendBody(txtcontent2);
SMTPCU.Send;
But when i open the mail, the result is
Sir/ Madam,Please find the attachmentRegards
i want the space to provide as an content format.
Jai
0
Comments
Glabal Var
Name DataType Subtype Length
MSC Automation 'Microsoft Script Control 1.0'.ScriptControl
chr10 Text 30
chr13 Text 30
newcontent Text 200
CREATE(MSC);
MSC.Language:='vbscript';
chr10:=MSC.Eval('chr(10)');
chr13:=MSC.Eval('chr(13)');
newcontent := CHR13+CHR10+txtcontent+CHR13+CHR10+textcontent1+CHR13+CHR10+textcontent2;
SMTPCU.AppendBody(newcontent);
SMTPCU.Send;
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!