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