Results 1 to 2 of 2

Thread: Email error "Unable to read data from the transport connection: net_io_connectionclos

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2010
    Posts
    478

    Email error "Unable to read data from the transport connection: net_io_connectionclos

    I used code below to send emails everyday from my pc automatically:

    Dim myMail As New SmtpClient("email.hcpipa.com")
    myMail.Credentials = New System.Net.NetworkCredential("mymail", "mypassword")
    myMail.Send(mail)

    IT guy create a account "mymail" in exchange server.

    It works for a long time but today has an error said that

    System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.

    Is something wrong in server?

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Email error "Unable to read data from the transport connection: net_io_connection

    It could be a server error. If the code has always worked and now does not, I would focus on either the exchange server you are sending through, or any changes software/security wise your own machine may have had since it stopped working. Also, you should call .Dispose on the SmtpClient after you are done using it to ensure proper cleanup and connection closure.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width