Error asp.net sending email -


i followed first answer of how can send email using gmail smtp in asp.net mvc application? , tried tutorials same result(i used gmail account , password). receive error when doing smtp.send(message); receive error 502 ( bad gateway)

there 2 forms of smtp on ssl; explicit ssl , implicit ssl. need determine form of ssl destination server using, , make sure smtp library using supports protocol , configured properly.

i suggest instead of sending email directly within asp.net code, queue messages database, , have service routinely checks queue , sends messages, , removes messages upon successful send.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -