I'm trying to send out an email from my Gmail account using Postal:
dynamic email = new Email("Appointment");
email.To = "sergiotapia@outlook.com";
email.Send();
And I get this error:
System.Net.Mail.SmtpException: {"The SMTP server requires a secure connection or the client was not authenticated.The server response was: 5.7.0 Must issue a STARTTLS command first.
Any ideas what I need to do to send this email out?
Here's my web.config setting:
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="asdf@adsf.ly.com">
<network host="smtp.gmail.com" port="587" defaultCredentials="false" userName="asdf@adsf.ly" password="asdf" />
</smtp>
</mailSettings>
</system.net>