hello
I can not send mail !
Error: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at
SMTP Server Settings
SMTP Server Address:
Port:
Username:
Password:
SSL: Enabled
Security Mode: Explicit
Email Message
From:
To:
Subject:
Text Body:
or Error: Failure sending mail.
This work code fine
but asponce mail projects ( all ) not working please help
thank you
NetworkCredential loginInfo = new NetworkCredential(gmailAccount, password);
MailMessage msg = new MailMessage();
msg.From = new MailAddress(gmailAccount);
msg.To.Add(new MailAddress(gmailAccount));
msg.Subject = “konu”;
msg.Body = “mesaj”;
msg.IsBodyHtml = true;
SmtpClient client = new SmtpClient(“[smtp.gmail.com](http://smtp.gmail.com/)”);
client.EnableSsl = true;
client.UseDefaultCredentials = false;
client.Credentials = loginInfo;
client.Port = 587;
client.Send(msg);