SMTP question
Gilles Lenfant
gilles.lenfant at nospam.com
Mon Oct 18 11:49:13 EDT 2004
More information about the Python-list mailing list
Mon Oct 18 11:49:13 EDT 2004
- Previous message (by thread): SMTP question
- Next message (by thread): SMTP question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
LutherRevisited a écrit : > I'm trying to send an email this way: > msg = MIMEText(self.text_ctrl_1.GetValue()) > msg['Subject'] = sub > msg['From'] = 'bossierbossman at yahoo.com' > msg['To'] = to > s = smtplib.SMTP('smtp.mail.yahoo.com') > s.set_debuglevel(1) > s.connect() > s.sendmail('bossierbossman at yahoo.com', to, msg) > s.quit() > but this is not working at all. Can someone point me in the right direction? Have a look at the email package that provides features for building easily RFC822 compliant mail headers and bodies (including multipart). -- Gilles
- Previous message (by thread): SMTP question
- Next message (by thread): SMTP question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list