Can I create HTML mails in Python,?? How??

Luckow luckow at netvision.com.br
Mon Feb 12 19:34:28 EST 2001


At the web site that I work I only get to send mails with the follow command.

os.popen("echo 'Message of the mail' | su myself -c mail 'Subject of mail' pedro at provedor.com.br")

However I find an commmand that I can create email in HTML.

 f = os.popen ( "/usr/sbin/sendmail", "w" )

 f.write ( """\
 From: pedro at terra.com.br
 To: joao at uol.com.br
 Subject: some subject
 
 body os de messagem
 """ )

this comand allow me to create since an simple text mail until an HTML email, but this command not run in my FreeBSD (with SendMail). The browser show an I/O Error.

Or some body have some source-code with this that I want.

SOME BODY CAN HELP-ME please.

tanks for all.

Décio H. Luckow
(sorry my bad english)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20010212/8a909f03/attachment.html>


More information about the Python-list mailing list