Ejemplo n.º 1
0
 public EmailMessage(string subject, EmailAddress from, string text, string html, EmailAddress to)
 {
     Subject = subject;
     From    = from;
     Text    = text;
     Html    = html;
     Tos.Add(to);
 }
Ejemplo n.º 2
0
 public static SendGrid.Helpers.Mail.EmailAddress ToSendGridEmailAddress(this EmailAddress emailAddress)
 {
     return(new SendGrid.Helpers.Mail.EmailAddress(emailAddress.Email, emailAddress.Name));
 }