Email Directly from python

Larry Bates larry.bates at websafe.com
Wed Feb 13 15:50:57 EST 2008


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

smtp module can do what you want yes.

-Larry



More information about the Python-list mailing list