<div class="body">
Hi,
I am trying to send email using asp.net application via smtp.live.com and I keep getting below error
Mailbox unavailable. The server response was: 5.7.3 Requested action aborted; user not authenticated
I am using below code
MailMessage _newEmail = new MailMessage();
_newEmail.To.Add(info@domain.com);
_newEmail.From = new MailAddress("hitin@domain.com", "Hitin");
_newEmail.Body = Comments; //Email text
_newEmail.IsBodyHtml = true;
_newEmail.Subject = "Website contact form";
SmtpClient _client = new SmtpClient();
_client.UseDefaultCredentials = false;
_client.Credentials = new System.Net.NetworkCredential('info@domain.com', 'secretpass', "www.domain.com");
_client.Host = smtp.live.com;
_client.Port = 587;
_client.EnableSsl = true;
_client.Send(_newEmail);
Steps I tried: ...
Go to the complete details ...