I try to build an extension package but I get this error:
Mail.NewMessage("E-mail",'', '',Subject,Body,'',true);
*This post is locked for comments
Hi Mehdi,
Try to use the CodeUnit "SMTP Mail" like:
Var varSMTPMail : Codeunit "SMTP Mail"; Begin varSMTPMail.CreateMessage(PSenderName, PSenderAdress, PRecipients, PSubject, PBody, PTemplate.HTML); varSMTPMail.Send(); end;
.
Please verify my answer if you find my answer helpful. Doing so you'll show other community members that there was found a solution and you credit my help.
.
Best Regards,
Sohail Ahmed
2
mmv
2
Amol Salvi
2