diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-03-11 13:27:21 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-03-11 13:27:21 +0200 |
commit | 4e74d07244fcceb73491ac3b2058384f80296fc2 (patch) | |
tree | c093db29fac7d8b7996960572a1dcc980c959c86 | |
parent | 7388c25a7507c6f742fd53bc6dab7f80a1beb368 (diff) | |
download | server-yarns-4e74d07244fcceb73491ac3b2058384f80296fc2.tar.gz |
Send mail to submission port (587), not smtp (25)
-rw-r--r-- | 900-implements.yarn | 2 |
1 files changed, 1 insertions, 1 deletions
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) |