Email Directly from python

Guilherme Polo ggpolo at gmail.com
Wed Feb 13 16:05:49 EST 2008


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

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
>
> --
>  http://mail.python.org/mailman/listinfo/python-list
>


-- 
-- Guilherme H. Polo Goncalves



More information about the Python-list mailing list