From 4e74d07244fcceb73491ac3b2058384f80296fc2 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 11 Mar 2017 13:27:21 +0200 Subject: Send mail to submission port (587), not smtp (25) --- 900-implements.yarn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/900-implements.yarn b/900-implements.yarn index dc73049..025ee9a 100644 --- a/900-implements.yarn +++ b/900-implements.yarn @@ -115,7 +115,7 @@ from_addr = 'someone@example.com' msg = 'From: {}\nTo: {}\nSubject: {}\n\nThis is the body\n'.format( from_addr, to_addr, subject) - server = smtplib.SMTP(address) + server = smtplib.SMTP(address, port=587) server.set_debuglevel(True) server.starttls() server.sendmail(from_addr, to_addr, msg) -- cgit v1.2.1