views:

64

answers:

1

Possible Duplicate:
Receive and send emails in python

I've been looking into sending mail with python and found a few different options (setting up my own mailserver, using gmail's smtp, etc) but was wondering if there was some simple way to do it. I am running the python script via wsgi on apache2 on an ubuntu box. Thanks for any tips!

A: 

There's a great example here. As you seem to know, you'll just need an smtp server to do the actual sending. That particular step is not dependent on python.

If g-mails smtp server let's you send mail, I'd go that route. When I last set this up (for an svn backup script), I luckily got to use my company's smtp server.

JoshD
I was hoping I could get around using gmail as it always says sent from your gmail account but that worked well enough. I used this: http://kutuma.blogspot.com/2007/08/sending-emails-via-gmail-with-python.html
Shane Reustle