469,290 Members | 1,838 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,290 developers. It's quick & easy.

Yet more SMTP

Ok with some tweaking I got it to where I could send through my local isp's
smtp server, but I am restricted to sending the message from my ISP's mail
account. When I respond to Yahoo mail, I want to use my yahoo address. I was
able to get into aol's smtp with:
s = smtplib.SMTP('smtp.aol.com', 587)
s.set_debuglevel(1)
s.ehlo()
s.docmd('AUTH', 'PLAIN')
s.docmd('LutherRevisited')
s.docmd('myPassword')
s.sendmail('l**************@aol.com', [to], msg)
s.quit()
but I'm unable to send on that server with my yahoo address, when I try this on
yahoo's smtp server it does not require me to use AUTH, but AOL drops my
messages giving me some kind of 'bulk mail, yada yada' message. I don't have
this problem with Outlook using Yahoo's smtp server, so I'm curious to know
what it is that Outlook is doing that I'm missing in my code? With Yahoo I did
something like:
s = smtplib.SMTP('smtp.yahoo.com')
s.set_debuglevel(1)
s.ehlo()
s.sendmail('b*************@yahoo.com', [to], msg)
s.quit()
but this is dropped for some odd reason. Any thoughts? Also I never got the
login method of smtp to work with AOL's smtp, so I had to run through that by
hand. Can someone tell me if I'm missing something there also?
Jul 18 '05 #1
4 1899
LutherRevisited wrote:
Ok with some tweaking I got it to where I could send through my local isp's
smtp server, but I am restricted to sending the message from my ISP's mail
account. When I respond to Yahoo mail, I want to use my yahoo address. I was
able to get into aol's smtp with:
s = smtplib.SMTP('smtp.aol.com', 587)
s.set_debuglevel(1)
s.ehlo()
s.docmd('AUTH', 'PLAIN')
s.docmd('LutherRevisited')
s.docmd('myPassword')
s.sendmail('l**************@aol.com', [to], msg)
s.quit()
but I'm unable to send on that server with my yahoo address, when I try this on
yahoo's smtp server it does not require me to use AUTH, but AOL drops my
messages giving me some kind of 'bulk mail, yada yada' message. I don't have
this problem with Outlook using Yahoo's smtp server, so I'm curious to know
what it is that Outlook is doing that I'm missing in my code? With Yahoo I did
something like:
s = smtplib.SMTP('smtp.yahoo.com')
s.set_debuglevel(1)
s.ehlo()
s.sendmail('b*************@yahoo.com', [to], msg)
s.quit()
but this is dropped for some odd reason. Any thoughts? Also I never got the
login method of smtp to work with AOL's smtp, so I had to run through that by
hand. Can someone tell me if I'm missing something there also?


You may find this URL helpful:

http://techsupport.ath.vt.edu/X-Junkmail-Status.html
Jul 18 '05 #2
Thanks for the reply, that link is down right now, but I'll give it a look
tommorow. Getting technical support from AOL is like pulling teeth......geez.
This guy was insisting that I should contact Yahoo about this. How in the
world is Yahoo going to be able to answer my questions about the smtp server
that aol rerouted me too?
Jul 18 '05 #3
On Tue, Oct 19, 2004 at 12:03:08AM +0000, LutherRevisited wrote:
[...]
s = smtplib.SMTP('smtp.aol.com', 587)
[...]
s.docmd('AUTH', 'PLAIN')
[...]


Don't reinvent the wheel. Use .login instead(). Also, PLAIN doesn't
mean you send the password in plain text (it's encoded with base64).
And the developers of the Python standard library - in this case, me
:-P - already did that work once for you in .login() of the SMTP
object ;-)

-- Gerhard
Jul 18 '05 #4
LutherRevisited wrote:
Thanks for the reply, that link is down right now, but I'll give it a look
tommorow. Getting technical support from AOL is like pulling teeth......geez.
This guy was insisting that I should contact Yahoo about this. How in the
world is Yahoo going to be able to answer my questions about the smtp server
that aol rerouted me too?


We had a power outage last night around 10:PM Eastern time. The link is
back up now.
Jul 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Dan Boyle | last post: by
2 posts views Thread by RandRace | last post: by
3 posts views Thread by Shannon Clyde | last post: by
3 posts views Thread by dale zhang | last post: by
34 posts views Thread by antonyliu2002 | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.