I followed the first answer of How can I send email using Gmail SMTP in asp.net mvc application? and i tried another tutorials but same result(i used my gmail account and password). I receive error when it is doing smtp.Send(message); I receive error 502 ( Bad GateWay)
Asked
Active
Viewed 55 times
1 Answers
0
There are two forms of SMTP over SSL; Explicit SSL and Implicit SSL. You need to determine which form of SSL your destination server is using, and make sure that the SMTP library you are using supports that protocol and is configured properly.
I would also suggest that instead of sending email directly within your ASP.Net code, that you queue the messages to a database, and have a service that routinely checks the queue and sends messages, and only removes messages upon successful send.

Byron Jones
- 315
- 2
- 11