Dashboard > CI Development > ... > Data Distribution Network > Sending email with SMTP
Log In   View a printable version of the current page.
CI Development
Sending email with SMTP
Added by Dorian Raymer , last edited by Michael Meisinger on Jan 29, 2009  (view change)
Labels: 
(None)

import smtplib

m = smtplib.SMTP()

m.connect('smtp.gmail.com')
m.ehlo()
m.starttls()
m.ehlo()
m.login('user', 'pass')
m.sendmail('user', 'to_address', message)
m.close()

Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators