The server response was: 4.3.2 Service not available, closing transmission channel

試著忘記壹切 提交于 2019-11-28 03:17:41

问题


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 = "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);

回答1:


Got the solution for the issue. The Server was rejecting the request because this application didn't have write rights on that server. The code was perfectly fine, just it was permissions problem. Hope this helps someone!



来源:https://stackoverflow.com/questions/12732859/the-server-response-was-4-3-2-service-not-available-closing-transmission-chann

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!