Hi,
I'm trying to send an email using smtplib and a Yahoo smtp server.
I've read that this uses authentication, so in order to use
'smtp.mail.yaho o.com' as the host, I use the login() method, and this
works fine (ie I login ok) . When I look at the received mail, the
text I send is not there - does anyone know why this is the case ?
Here's the code I've been using:
import smtplib
server = smtplib.SMTP("s mtp.mail.yahoo. com")
server.debuglev el = 25
server.login("m yusername", "mypassword ")
fromClause = "me@me.com"
toClause = "you@yahoo.co.u k"
msg = "Please display me."
server.sendmail (fromClause, toClause, msg)
server.quit()
Regards,
Alastair.
I'm trying to send an email using smtplib and a Yahoo smtp server.
I've read that this uses authentication, so in order to use
'smtp.mail.yaho o.com' as the host, I use the login() method, and this
works fine (ie I login ok) . When I look at the received mail, the
text I send is not there - does anyone know why this is the case ?
Here's the code I've been using:
import smtplib
server = smtplib.SMTP("s mtp.mail.yahoo. com")
server.debuglev el = 25
server.login("m yusername", "mypassword ")
fromClause = "me@me.com"
toClause = "you@yahoo.co.u k"
msg = "Please display me."
server.sendmail (fromClause, toClause, msg)
server.quit()
Regards,
Alastair.
Comment