Email Directly from python

Guilherme Polo ggpolo at
Wed Feb 13 22:05:49 CET 2008

2008/2/13, brad <byte8bits at>:
> 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

I hope to not disappoint you, but mail will invoke a smtp server to
send your mail.

>  Can Python do something similar in a portable fashion without a smtp
>  server installed on the machine?

You can use a smtp server that is installed somewhere else.

>  Thanks,
>  Brad
> --

-- Guilherme H. Polo Goncalves

More information about the Python-list mailing list