I was recently switched to Comcast as my internet provider. Since being switched, I can't send emails using System.Net.Mail. The code I'm using is:
Dim mSmtpClient As New SmtpClient()
mSmtpClient.Host = CsServer
mSmtpClient.Port = CsPort
mSmtpClient.EnableSsl = CsUseSSL
mSmtpClient.UseDefaultCredentials = False
mSmtpClient.Credentials = New NetworkCredential(CsSmtpUserName, CsSmtpPassword)
mSmtpClient.DeliveryMethod = SmtpDeliveryMethod.Network
mSmtpClient.Send(objMsg)
objMsg.Dispose()
CsServer = smtp.comcast.net
CsPort = 587
CsUseSSL = True
CsSmtpUserName = My email address including the @Comcast.net
CsSmtpPassword = My password
I have tried CsSmtpUserName with and without the @Comcast.net
I have tried UseDefaultCredentials with True and False
My environment is VS 2010, .Net 4, Windows 10. I'm using LocalHost in the development environment
What I have tried:
I have tried different combinations of settings and reviewed a number of possible solutions, none of which worked.