D
Developer Dude
Guest
Hi:
I am trying to get a simple vb email program working but I am getting
the following error message: "System.Net.Mail.SmtpException: Failure sending mail.
Inner Exception. IO Exception: Unable to read data from the transport connection.
net_io connection closed" I have done a lot of research but nothing works. Here is my code.
I also confirmed smtp info with my service provider.
Imports System.Net.Mail
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Mail As New MailMessage
Mail.Subject = "test email"
Mail.To.Add("daveclark@rogers.com")
Mail.From = New MailAddress("johnbrown@rogers.com")
Mail.Body = "This is a test email using VB.NET"
Dim SMTP As New SmtpClient("smtp.broadband.rogers.com")
SMTP.EnableSsl = True
SMTP.Credentials = New System.Net.NetworkCredential("johnbrown@rogers.com", "A82")
SMTP.Port = "465"
SMTP.Send(Mail)
End Sub
Help would be greatly appreciated.
Continue reading...
I am trying to get a simple vb email program working but I am getting
the following error message: "System.Net.Mail.SmtpException: Failure sending mail.
Inner Exception. IO Exception: Unable to read data from the transport connection.
net_io connection closed" I have done a lot of research but nothing works. Here is my code.
I also confirmed smtp info with my service provider.
Imports System.Net.Mail
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Mail As New MailMessage
Mail.Subject = "test email"
Mail.To.Add("daveclark@rogers.com")
Mail.From = New MailAddress("johnbrown@rogers.com")
Mail.Body = "This is a test email using VB.NET"
Dim SMTP As New SmtpClient("smtp.broadband.rogers.com")
SMTP.EnableSsl = True
SMTP.Credentials = New System.Net.NetworkCredential("johnbrown@rogers.com", "A82")
SMTP.Port = "465"
SMTP.Send(Mail)
End Sub
Help would be greatly appreciated.
Continue reading...