472,336 Members | 1,260 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,336 software developers and data experts.

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 1970
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dan Boyle | last post by:
Hi, I am having difficulty connection to an smtp host. I am using the following code but I don't think I fully understand what smtp host can be...
21
by: Nancy | last post by:
Hi, Guys, Is there any other way to use python or mod_python writing a web page? I mean, not use "form.py/email", no SMTP server. <form...
0
by: Almir | last post by:
I hate this Net::SMTP stuff, everything works fine but for the suject field. I see no way of having it show in an email when sent. Has anyone had...
2
by: RandRace | last post by:
I'm having some problems with a little script i wrote using net::smtp. I originally wrote it in linux where it works perfectly. I tried to use it...
3
by: Shannon Clyde | last post by:
SMTP + relay + auth in an IPSEC tunnel to connect to our primary SMTP mail server (GroupWise) from the Web server looks like it would work fine, but...
3
by: dale zhang | last post by:
Hi, I write an asp.net web application. It has a “Contact Us” page, where users fill in their email, subject and text and hit send. Then the...
1
by: bivin | last post by:
hai i am requesting your technical support. please help me. i have been working with this for five days. the problem is relating with the...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access...
13
by: jcor | last post by:
Hi, I'm trying some code to send a mail with my script. This is it: #!/usr/bin/perl use Net::SMTP; my $smtp_server='62.193.245.15'; my $smtp...
5
by: jimhill10 | last post by:
I have a perl script that creates an email attachment file from POST data on a web page. This works just fine. I want to customize the email body...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.