Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.
System.Net.Mail.MailMessage theEmailToSend = new System.Net.Mail.MailMessage(); System.Net.Mail.MailAddress theRecipient = new System.Net.Mail.MailAddress("TimAttaway@mchapusa.com", "Tim Attaway"); theEmailToSend.To.Add(theRecipient); System.Net.Mail.MailAddress FromAddress = new System.Net.Mail.MailAddress("TimAttaway@mchapusa.com", "Tim Attaway"); theEmailToSend.From = FromAddress; theEmailToSend.Body = "This is a simple email."; theEmailToSend.IsBodyHtml = false; theEmailToSend.Subject = "Email Test"; System.Net.Mail.SmtpClient theClient = new System.Net.Mail.SmtpClient(); theClient.Host = "localhost"; theClient.Port = 25; theClient.Send(theEmailToSend);
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.