How to send email via Acumatica notifications mechanism

Hello everybody,

Today I want to share a note on how to send email via Acumatica notifications mechanism:

var sender = new NotificationGenerator
{
 
    To = "someone@example.com",
    Subject = $"Subject information {DateTime.Now:d}",
    Body = "Body od message",
    BodyFormat = EmailFormatListAttribute.Text
};
 
sender.Send();

With such code, Acumatica will send email.

No Comments

Add a Comment