Email Directly from python

Daniel Folkes danfolkes at gmail.com
Fri Feb 15 17:24:38 EST 2008


You could always just set up a gmail account and use that SMTP.  Thats
what I do.  Then all you have to do is google search for "gmail smtp
python" and get some easy code.

You can even send attatchments really easy.

-Daniel Folkes

brad wrote:
> I'd like to send email directly from within python without having to
> rely on an external smtp server. You know, something like the good, old
> Unix...
>
> echo My_message | mail -s Subject person at someplace.com
>
> Can Python do something similar in a portable fashion without a smtp
> server installed on the machine?
>
> Thanks,
> Brad



More information about the Python-list mailing list