/// <summary> /// Creates an instance of SendGrid's custom message object with mail parameters /// </summary> /// <param name="from">The email address of the sender</param> /// <param name="to">An array of the recipients</param> /// <param name="cc">Supported over SMTP, with future plans for support in the Web transport</param> /// <param name="bcc">Blind recipients</param> /// <param name="subject">The subject of the message</param> /// <param name="html">the html content for the message</param> /// <param name="text">the plain text part of the message</param> /// <param name="transport">Transport class to use for sending the message</param> /// <returns></returns> public static Mail GetInstance(MailAddress from, MailAddress[] to, MailAddress[] cc, MailAddress[] bcc, string subject, string html, string text) { var header = new Header(); return new Mail(from, to, cc, bcc, subject, html, text, header); }
/// <summary> /// Creates an instance of SendGrid's custom message object /// </summary> /// <returns></returns> public static Mail GetInstance() { var header = new Header(); return new Mail(header); }