You must Sign In to post a response.
  • Category: .NET

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

    Dear All,

    I am getting below error message while trying to send email from my c#.net windows application. The code I am using to send email was working properly last couple for years. But from this week I am start getting the below error message:

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

    Can anyone please tell me what went wrong suddenly.

    My code is below:

    public static bool sentMail(string From, string To, string Subject, string Body)
    {
    try
    {
    System.Text.StringBuilder sb = new System.Text.StringBuilder();
    String server = "kpx-sx-mbx"; //Send through Server Name
    MailAddress to = new MailAddress(To);
    MailAddress from = new MailAddress(From);
    MailMessage message = new MailMessage(from, to);
    message.IsBodyHtml = true;
    message.Subject = Subject;
    message.Body = Body;
    SmtpClient client = new SmtpClient(server);
    client.Send(message); ////// Here is the error msg
    return true;
    }
    catch (Exception ex)
    {
    MessageBox.Show(ex.Message);
    return false;
    }
    }

    Thanks in advance...
  • #765260
    Service not available closing transmission channel. The server response was: 4.3.2
    Thanks,
    Ram Prasad


Sign In to post your comments