static SmtpClient GetSmtpClient2()
{
SmtpClient client = new SmtpClient();
client.Host = "smtp.gmail.com";
//Specify your mail Username, Password, Port # and security option
client.Username = "user";
client.Password = "password";
client.Port = 587;
client.SecurityOptions = SecurityOptions.SSLExplicit;
return client;
}
static void SendMail()