Quantcast
Channel: Sending email error - SMTP Server requires a secure connection 5.5.1
Viewing all articles
Browse latest Browse all 11

Re: Sending email error - SMTP Server requires a secure connection 5.5.1

$
0
0

Try adding this. It is by no means a solution to the problem but if it works it may help us work out what is wrong with the original setup (add all of this at the end just before the smptClient.send command:

smtpClient.Port = 587
smtpClient.UseDefaultCredentials = False
smtpClient.Credentials = new System.Net.NetworkCredential
("YourUserName@gmail.com","YourGmailPassword")
smtpClient.EnableSsl = true

Viewing all articles
Browse latest Browse all 11

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>