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);
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.
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With