-
Oct 10th, 2014, 11:33 AM
#1
Thread Starter
Hyperactive Member
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?
-
Oct 10th, 2014, 01:49 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|