I am getting this error while sending email from my application. Can anyone suggest any solution.
Service not available, closing transmission channel. The server response was: 4.3.2 Service not available, closing transmission channel
Below is code.
string adminID = "[email protected]";
MailMessage msg = new MailMessage();
msg.From = new MailAddress(adminID);
msg.To.Add("[email protected]");
msg.Subject = "Sample Email";
msg.Body = "Hello ";
SmtpClient SmtpMail = new SmtpClient();
SmtpMail.Host = "basic.smtp.ttu.edu";
SmtpMail.Port = 25;
SmtpMail.Send(msg);