SMTP auth example

This commit is contained in:
Sergey Lavrinenko 2015-04-08 19:16:44 +03:00
parent 51db76134f
commit 2e12966228
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ Send and get response from smtp server:
r = message.send(to=('John Brown', 'jbrown@gmail.com'),
render={'name': 'John'},
smtp={'host':'smtp.mycompany.com', 'port': 465, 'ssl': True})
smtp={'host':'smtp.mycompany.com', 'port': 465, 'ssl': True, 'user': 'john', 'password': '***'})
assert r.status_code == 250