Vim is a powerful text editor favored by many sysadmins and developers - here are some commands that you'll want to keep in your back pocket!
MailMessage message = new MailMessage(); message.To.Add(to); message.From = new MailAddress("email@example.com", "myname", System.Text.Encoding.UTF8); message.Subject = subject; message.SubjectEncoding = System.Text.Encoding.UTF8; message.Body = message2; message.BodyEncoding = System.Text.Encoding.UTF8; message.IsBodyHtml = false; message.Priority = MailPriority.Normal; SmtpClient emailClient = new SmtpClient(); emailClient.Credentials = new NetworkCredential("firstname.lastname@example.org", "secret"); emailClient.Port = 587; emailClient.Host = "smtp.gmail.com."; emailClient.EnableSsl = true; emailClient.Send(message);
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.