phildeutsch / bitbot

Algorithmic bitcoin trading
www.phildeutsch.com
1 stars 0 forks source link

Email alerts #41

Closed phildeutsch closed 10 years ago

phildeutsch commented 10 years ago

from smtplib import SMTP_SSL as SMTP import sys from email.mime.text import MIMEText

text = 'sent from python' msg = MIMEText(text, 'plain') recipient = 'philipp.g.deutsch@gmail.com' sender = 'phil@phildeutsch.com' msg['Subject'] = "test email" msg['To'] = recipient msg['From'] = sender conn = SMTP('smtpout.europe.secureserver.net') conn.login(sender, 'Dezember2013') conn.sendmail(sender, recipient, msg.as_string()) conn.close()