Hi gideom, One problem remaining:
If I use your script (with quit() changed to close()) -- quit() raises an exception -- I can do an smtp session with smtp.gmail.com just fine. However, the string I sent as the body of the message (as in server.sendmail(fm,to,msgbody) where msgbody is a string), seems to disappear, and the recipient gets a blank message. Obet On Tuesday 27 February 2007 6:19 pm, [EMAIL PROTECTED] wrote: > Thanks, Gideon. This is probably going to be useful for me. Will let you > know what > happens. > > Obet > > > Original Message: > ----------------- > From: Gideon Guillen [EMAIL PROTECTED] > Date: Tue, 27 Feb 2007 10:43:42 +0800 > To: [email protected] > Subject: Re: [plug] gmail's pop3 server > > On 2/27/07, Roberto Verzola <[EMAIL PROTECTED]> wrote: > > I'm using python's smtplib, though I don't think my problem is > > language-dependent. > > A few years ago, I had to make an SMTP proxy for Gmail because > Evolution 1.2.x can't authenticate with Gmail's SMTP (probably a bug > w/ Evolution then). Here's the code (python) of that SMTP proxy class: > > --begin-- > import smtpd, smtplib > class GmailSMTPProxy(smtpd.SMTPServer): > def process_message(self, peer, mailfrom, rcpttos, data): > server = smtplib.SMTP('smtp.gmail.com',587) > server.ehlo() > server.starttls() > server.ehlo() > server.login('[EMAIL PROTECTED]', 'password') > server.sendmail(mailfrom, rcpttos, data) > server.quit() > --end-- > > I haven't used this script for years, but I think it would still work. > > -- > Gideon N. Guillen > [EMAIL PROTECTED] > _________________________________________________ > Philippine Linux Users' Group (PLUG) Mailing List > [email protected] (#PLUG @ irc.free.net.ph) > Read the Guidelines: http://linux.org.ph/lists > Searchable Archives: http://archives.free.net.ph > > -------------------------------------------------------------------- > mail2web.com What can On Demand Business Solutions do for you? > http://link.mail2web.com/Business/SharePoint > > > _________________________________________________ > Philippine Linux Users' Group (PLUG) Mailing List > [email protected] (#PLUG @ irc.free.net.ph) > Read the Guidelines: http://linux.org.ph/lists > Searchable Archives: http://archives.free.net.ph _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

