I've got the below code which will send me an email of error details when dealing with customers. The problem is the email only seems to successfully send from certain ISP's. Could it be that even though the correct authenication details have been eneterd that certain ISP's are blocking port 25?
vb Code:
Dim SMTPUserInfo As NetworkCredential = New NetworkCredential("
[email protected]", "MyPassword")
With insMail
.Subject = "Error logs for customer " & customerID
.Body = strBody.ToString
End With
Dim smtp As New System.Net.Mail.SmtpClient
smtp.Host = "mail.OurWebsite.com" '
smtp.UseDefaultCredentials = False
smtp.Credentials = SMTPUserInfo
smtp.Port = 25
smtp.Send(insMail)