I’m trying to send email via Amazon SES new SMTP service using .NET’s built-in SmtpClient
Code:
var emailClient = new SmtpClient("email-smtp.us-east-1.amazonaws.com", 465);
emailClient.EnableSsl = true;
....
emailClient.Send(message);
I get an exception:
Unable to read data from the transport connection:
net_io_connectionclosed
Google says this error means that I can’t reach SMTP server.
They require TLS which I beleive achieved by “EnableSsl” property.
Anybody know how I need to tweak my code to make it work?
EDIT:
I guess I will close this question. No, it’s not possible to do what I want with SmtpClient
https://forums.aws.amazon.com/thread.jspa?messageID=302112񉰠
I can confirm that it works with STARTTLS and port 587.
Hope that helps