Gmail SmtpClient exampe

SmtpClient gglClient = new SmtpClient("", 587);             gglClient.UseDefaultCredentials = false;             gglClient.DeliveryMethod = SmtpDeliveryMethod.Network;             gglClient.Credentials = new NetworkCredential("", "password");             gglClient.EnableSsl = true;             MailMessage msg = new MailMessage("", email);             msg.Subject = "";             msg.Body = @" ";             msg.IsBodyHtml = false;             msg.BodyEncoding = UTF8Encoding.UTF8;             gglClient.Timeout = 8000;             ServicePointManager.ServerCertificateValidationCallback =                 delegate(object s, X509Certificate certificate, X509Chain chain,                     SslPolicyErrors sslPolicyErrors) { return true; };             gglClient.Send(msg);


Popular posts from this blog

c# Service Play Sound with NAudio example by Moshe

SOLVED The item could not be indexed successfully because the item failed in the indexing subsystem

JS/JQ simulate Enter event