MailMessage m = new MailMessage();
m.From = new MailAddress([from email address], [senders name]);
m.To.Add(emailAddressSendingTo);
m.Subject = subject;
m.Body = body;
m.IsBodyHtml = true;
m.ReplyTo = new MailAddress(replyToEmailAddress);
SmtpClient smtpc = new SmtpClient();
smtpc.Host = "ExchangeServerIP";
smtpc.Credentials = new System.Net.NetworkCredential(employeeNetworkAccount, employeeNetworkPassword, DomainName);
smtpc.Send(m);
|