Yet more SMTP

L

LutherRevisited

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('(e-mail address removed)', [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('(e-mail address removed)', [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?
 
B

Brad Tilley

LutherRevisited said:
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('(e-mail address removed)', [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('(e-mail address removed)', [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
 
L

LutherRevisited

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?
 
G

Gerhard Haering

[...]
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
 
B

Brad Tilley

LutherRevisited said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,792
Messages
2,569,639
Members
45,353
Latest member
RogerDoger

Latest Threads

Top