Yahoo SMTP

Travis bossierbossman at
Sun Oct 17 11:11:29 CEST 2004

Can someone give me an example of connecting to yahoo's smtp server 
and sending mail?
I'm doing this:
msg = MIMEText(self.text_ctrl_1.GetValue())
        msg['Subject'] = sub
        msg['From'] = 'bossierbossman at'
        msg['To'] = to
        s = smtplib.SMTP('')
        s.login('bossierbossman', 'mypassword')
        s.sendmail('bossierbossman at', [to], msg)
which isn't working out for me.  Any thoughts?

More information about the Python-list mailing list