Ejemplo n.º 1
0
        private void CreateMailMessage(ShiptalkMailMessage shipMailMessage)
        {
            //Transfer data to our Mail Message object
            shipMailMessage.ToList.ForEach(addr => MailMessageObject.To.Add(new MailAddress(addr)));
            shipMailMessage.CCList.ForEach(addr => MailMessageObject.CC.Add(new MailAddress(addr)));
            shipMailMessage.BCCList.ForEach(addr => MailMessageObject.Bcc.Add(new MailAddress(addr)));

            //Set all values required for our Mail Message object
            MailMessageObject.From       = new MailAddress(shipMailMessage.From);
            MailMessageObject.Subject    = shipMailMessage.Subject;
            MailMessageObject.Body       = shipMailMessage.Body;
            MailMessageObject.IsBodyHtml = shipMailMessage.IsBodyHtml;
        }
Ejemplo n.º 2
0
 public ShiptalkMail(ShiptalkMailMessage shipMailMessage)
 {
     CreateMailMessage(shipMailMessage);
 }