I'm getting the above error message. My code is posted below. The code below has worked fine for several months.
This last week, I started getting the error message stated in the title of the question.
The mailserver and the website are hosted on 2 different servers.
Anyone know why this has stopped working? How I can fix it?
Dim mail As New MailMessage
Dim fromAddress As New MailAddress("email@example.com")
mail.From = fromAddress
mail.Subject = "blah"
mail.Body = "123, abc"
Dim mailClient As String = "myMailServer.com"
Dim smtp As New SmtpClient(mailClient)