Send Email using Gmail - C#

Send Email using Gmail - C#

code snippet

using (var client = new SmtpClient{
Credentials = new System.Net.NetworkCredential("username", "password"),
Port = 587, // You can use Port 25 if 587 is blocked 
Host = ""
var mail = new MailMessage();
mail.From = new System.Net.Mail.MailAddress("");
mail.Subject = "Email Subject";
mail.Body = "Email Body";
mail.IsBodyHtml = false; // or true
catch (Exception){

"One today is worth two tomorrows"

Contact me!

Have questions? Feel free to use the form or send me an email with any questions.

I will be responsive to your requests and your questions.