Forum Discussion
I think we are making some proress!
It is going through every line till -
mMessage.Send();
... and then the exception takes place at the above line? I guess for some reason it can't send the message!!
Change the Log.Error to change the word "description" to "message". Let's see if we can find out what the actual exception is.
- tristaanogre6 years agoEsteemed Contributor
Basically, at this point, it's a connectivity problem. something is not allowing the link up between your machine and the gmail server. Some google searches seem to point to the port... that you might not have the correct port.
Since you're using SSL, it should be 465. The username should be your full gmail address including the @gmail.com
- royd6 years agoRegular Contributor
Okay, now we got (Additional info):
"The transport failed to connect to the server."
- tristaanogre6 years agoEsteemed Contributor
Change the smtpPort back to 465 and try again
- royd6 years agoRegular Contributor
Changed to 465, same error!
- royd6 years agoRegular Contributor
I have tried to use the entire email address (username@gmail.com) with port 465. That did not make any difference. I read that with gmail I need to use SSL, is that true?
I asked my manager if any of the ports in question are blocked, he was not sure. I need to talk to the network guys to make sure they are not blocked.
If you have any other solutions, I would love to hear it.
Once again, I really appreciate your time and effort trying to help me! Thank you!
Dave
Related Content
- 3 years ago
- 10 years ago
- 12 months ago
Recent Discussions
- 3 hours ago
- 20 hours ago