Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now
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.
Join the community of 500,000 technology professionals and ask your questions.