A
Alexander Vasilevsky
Code below after some pause raise exception "waiting times operations has
expired". Why?
public static void Send(string from, string pwd, string to, string subject,
string body)
{
MailMessage message = new MailMessage(from, to);
message.Subject = subject;
message.Body = body;
int port = 465;
SmtpClient client = new SmtpClient("smtp.gmail.com", port);
client.Credentials = new NetworkCredential(from, pwd);
client.EnableSsl = true;
client.Send(message);
}
http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
discount
expired". Why?
public static void Send(string from, string pwd, string to, string subject,
string body)
{
MailMessage message = new MailMessage(from, to);
message.Subject = subject;
message.Body = body;
int port = 465;
SmtpClient client = new SmtpClient("smtp.gmail.com", port);
client.Credentials = new NetworkCredential(from, pwd);
client.EnableSsl = true;
client.Send(message);
}
http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
discount