Dim mail As New MailMessage()
mail.From = New MailAddress(FromAddress)
mail.Subject = subject
mail.BodyEncoding = System.Text.Encoding.ASCII
mail.Body = TheBody
mail.IsBodyHtml = isHTML
mail.Priority = MailPriority.High
Dim smt As New SmtpClient("HostName")
smt.Credentials = New NetworkCredential("mailid", "password")
I use the above Code for sending mail but I got the below error..
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 18.104.22.168:25
How to solve this issue...?
It is very urgent.....
View Complete Post