K
KG
I am trying to send email using the following code.
Dim MailMessage As New System.Net.Mail.MailMessage("From..", "TO..")
Try
MailMessage.Body = "Test"
MailMessage.Subject = "Test subject"
Dim client As New System.Net.Mail.SmtpClient("host..")
client.Send(MailMessage)
Catch ex As System.Net.Mail.SmtpException
MsgBox(ex.InnerException.Message)
End Try
"Unable to read data from the transport connection:
net_io_connectionclosed."
Why am I getting this error. Please help.
Thanks in advance
KG
Dim MailMessage As New System.Net.Mail.MailMessage("From..", "TO..")
Try
MailMessage.Body = "Test"
MailMessage.Subject = "Test subject"
Dim client As New System.Net.Mail.SmtpClient("host..")
client.Send(MailMessage)
Catch ex As System.Net.Mail.SmtpException
MsgBox(ex.InnerException.Message)
End Try
"Unable to read data from the transport connection:
net_io_connectionclosed."
Why am I getting this error. Please help.
Thanks in advance
KG