using(SmtpClient client = new SmtpClient(\"smtp.gmail.com\", 587)) { // Configure the client client.EnableSsl = true; client.UseDefaultCredentials = fal
You need to enable two step authentication for you Gmail account and get application password. Then use that password instead of regular one.