T
Travis
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'] = '(e-mail address removed)'
msg['To'] = to
s = smtplib.SMTP('smtp.mail.yahoo.com')
s.set_debuglevel(1)
s.connect()
s.login('bossierbossman', 'mypassword')
s.sendmail('(e-mail address removed)', [to], msg)
s.quit()
which isn't working out for me. Any thoughts?
and sending mail?
I'm doing this:
msg = MIMEText(self.text_ctrl_1.GetValue())
msg['Subject'] = sub
msg['From'] = '(e-mail address removed)'
msg['To'] = to
s = smtplib.SMTP('smtp.mail.yahoo.com')
s.set_debuglevel(1)
s.connect()
s.login('bossierbossman', 'mypassword')
s.sendmail('(e-mail address removed)', [to], msg)
s.quit()
which isn't working out for me. Any thoughts?