We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at
MailMessage mail = new MailMessage(); mail.From = new MailAddress("firstname.lastname@example.org"); mail.To.Add("recientEmail@gmail.com"); mail.IsBodyHtml = true; mail.Subject = "Email Sent"; mail.Body = "Body content from"; SmtpClient smtp = new SmtpClient(); smtp.Credentials = new System.Net.NetworkCredential("email@example.com", "mypassword", "smtp.gmail.com"); smtp.Host = "smtp.gmail.com"; smtp.Port = 587; smtp.DeliveryMethod = SmtpDeliveryMethod.Network; smtp.EnableSsl = true; smtp.UseDefaultCredentials = false; smtp.Send(mail);
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Fastest way to get file count in MS Server 2012||3||36|
|How to calculate the sum of all rows at each new row in C#||4||60|
|Health check of winows and webservces||5||51|
|What is needed to become a DBA?||7||52|
Join the community of 500,000 technology professionals and ask your questions.