MailMessage msg = new MailMessage(); msg.From = new MailAddress('address@domain.com', 'Person's Name'); msg.To.Add(new MailAddress('destination@domain.com', 'Addressee's Name'); msg.To.Add(new MailAddress('destination2@domain.com', 'Addressee 2's Name'); msg.Subject = 'Message Subject'; msg.Body = 'Mail body content'; msg.IsBodyHtml = true; msg.Priority = MailPriority.High; SmtpClient c = new SmtpClient('mailserver.domain.com'); c.Send(msg); |