Example #1
0
        /// <param name="emailInfo">An <see cref="EmailInfo" /> that defines the e-mail message</param>
        /// <param name="body">A <see cref="T:System.String" /> that contains the message body</param>
        /// <param name="style">A <see cref="T:System.String" /> that contains the css to apply to the message</param>
        public HtmlMailMessage(EmailInfo emailInfo, string body, string style)
            : this(emailInfo.Subject, body, style, new MailAddress(emailInfo.From.Address))
        {
            foreach (var to in emailInfo.Tos)
                AddTo(((EmailAddress)to).Address);

            foreach (var cc in emailInfo.Ccs)
                AddCc(((EmailAddress)cc).Address);

            foreach (var bcc in emailInfo.Bccs)
                AddBcc(((EmailAddress)bcc).Address);
        }
Example #2
0
 /// <param name="emailInfo">An <see cref="EmailInfo" /> that defines the e-mail message</param>
 /// <param name="body">A <see cref="T:System.String" /> that contains the message body</param>
 public HtmlMailMessage(EmailInfo emailInfo, string body)
     : this(emailInfo, body, Empty) {}