Closed phildeutsch closed 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()
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()