Hi, I have send mail using gmail through my app. It shows an error like
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.
My code is:
string br = "\n\r";
String bdy = "Name : " + txtName.Text + br + br + "Email : " + txtEmail.Text + br + br + "Mobile : " + txtMobile.Text + br + br + "Description : " + txtenquiry.Text;
string from = "my@gmail.com";
string to = "to@gmail.com";
MailMessage mail = new System.Net.Mail.MailMessage();
mail.To.Add(to);
mail.From = new MailAddress(from, "Enquiry", System.Text.Encoding.UTF8);
mail.Subject = "Re: Contact Enquiry";
mail.SubjectEncoding ...
Go to the complete details ...