I'm unable to send mail via Python/Flask and the WebFaction SMTP. Settings I'm using are below:
The error I'm getting back is "SendEmailError: SMTP Connection error: Check your MAIL_SERVER and MAIL_PORT settings." I've tried using a MailBox I created as the username/password and I've tried using my webfaction account username/password and both result in the same. What have I got wrong? Edit: Updated with real FROM email - the error is still the same. The error is raised via the Python socket library: socket.gaierror, socket.error UPDATE: Turned on debugging and the exact error I'm getting is:
asked 18 Oct '15, 10:52 the_mal |
Fixed it. I had to set SSL to False, then it all worked. answered 19 Oct '15, 08:41 the_mal |
Please try sending with a valid FROM Email Address that you control. A basic check shows there are no MX records for 'noreply@testemail.com'. answered 18 Oct '15, 11:09 aaront ♦♦ I've tried with a valid email - set an email up on my domain, tested the email (sending and receiving) to make sure it's working and still the script fails.
(19 Oct '15, 07:28)
the_mal
More updates, I've turned on debugging and the exact error I'm getting is: SSLError(1, u'[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:581)')
(19 Oct '15, 08:20)
the_mal
|