Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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);
like image 615
techblog Avatar asked Oct 04 '12 17:10

techblog


2 Answers

Please check whether the server which is sending the e-mail is whitelisted on the SMTP server or Exchange server.

I had the same issue and whitelisting it on SMTP server resolved my issue.

like image 138
Suprotim Roy Avatar answered Nov 04 '22 13:11

Suprotim Roy


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!

like image 43
techblog Avatar answered Nov 04 '22 13:11

techblog