Alex Rivera | Logout

Sending email via Amazon SES SMTP error

Asked 2011-12-28T20:08:33.990
10

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&#302112

Edit
Report

1 Answer

0

Have you set defaultCredentials="false" in web.config?

answered 2011-12-28T20:40:33.920

Your Answer