Server response: 4.3.2. Service unavailable, closing transmission channel

I get this error when sending emails from my application. Can anyone suggest any solution.

Service unavailable, closing transmission channel. Server response was: 4.3.2 Service unavailable, closing transmission Channel

Below is the code.

string adminID = " AAA@tu.edu "; MailMessage msg = new MailMessage(); msg.From = new MailAddress(adminID); msg.To.Add(" BBB@ttu.edu "); msg.Subject = "Sample Email"; msg.Body = "Hello "; SmtpClient SmtpMail = new SmtpClient(); SmtpMail.Host = "basic.smtp.ttu.edu"; SmtpMail.Port = 25; SmtpMail.Send(msg); 
+6
source share
1 answer

Got a solution to the problem. The server rejected the request because this application did not have write permissions on this server. The code was excellent, just the problem was resolved. Hope this helps someone!

+16
source

Source: https://habr.com/ru/post/926974/


All Articles