Loading ...

How to send email in Acumatica

Hi,

today want to share quick code snippet on how to send email from Acumatica. For this purpose, good usage is for NotificationGenerator. See the code below:

public virtual void SendEmailNotification(string emailstring subjectstring emailBody)
{
    var sender = new NotificationGenerator
    {
        To = email,
        Subject = subject,
        Body = emailBody,
        BodyFormat = EmailFormatListAttribute.Html
    };
    sender.Send();
}

 

Currently rated 1.0 by 1 people

  • Currently 1.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5