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
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,
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156