SMTP client error

G

Guest

In VS2005, I get an error trying to send email.

Using SmtpClient in Visual Studio 2005, I get the error:

Unable to read data from the transport connection: net_io_connectionclosed

A code sample that generates the error is:
Dim MailObj As New System.Net.Mail.SmtpClient
MailObj.Host = "mailhub.ppl.com"
MailObj.Send("(e-mail address removed)", "(e-mail address removed)", "subject", "test")


Attachments:
 
Joined
Sep 15, 2006
Messages
1
Reaction score
0
Hi Cris,

I had the same problem. I fixed it by setting the correct IP Address in the properties of the Internet Information Server Services, because the my IP address is dynamic.

Regards,

MARIO
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top