I try to send the mail using asp.net 2005
The code I am using is
Try
Dim strTo As String = "to@yahoo.c om"
Dim strFrom As String = "from@gmail.com "
Dim strSubject As String = "Hi Chris"
SmtpMail.Send(s trFrom, strTo, strSubject, "Boby: Hi how r u")
Response.Write( "Email is send")
Catch ex As Exception
Response.Write( ex.Message.ToSt ring)
End Try
First time I am successful to send the mail but then I got the error like :
The transport failed to connect to the server.
Failure sending mail.
The transport failed to connect to the server.
The code I am using is
Try
Dim strTo As String = "to@yahoo.c om"
Dim strFrom As String = "from@gmail.com "
Dim strSubject As String = "Hi Chris"
SmtpMail.Send(s trFrom, strTo, strSubject, "Boby: Hi how r u")
Response.Write( "Email is send")
Catch ex As Exception
Response.Write( ex.Message.ToSt ring)
End Try
First time I am successful to send the mail but then I got the error like :
The transport failed to connect to the server.
Failure sending mail.
The transport failed to connect to the server.
Comment