Can I create HTML mails in Python,?? How??
Sandipan Gangopadhyay
sandipan at vsnl.com
Mon Feb 12 21:45:02 EST 2001
More information about the Python-list mailing list
Mon Feb 12 21:45:02 EST 2001
- Previous message (by thread): Graph (cyclic kind, not pretty picture kind) rendering algorithm?
- Next message (by thread): Can I create HTML mails in Python,?? How??
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
You can use smtplib or os.popen (like you have written) for sending the mail, but need to use MimeWriter or such module to build a MIME email. And put the HTML document in the MIME body appropriately. Regards, Sandipan ----- Original Message ----- From: Luckow To: python-list at python.org Sent: Tuesday, February 13, 2001 6:04 AM Subject: Can I create HTML mails in Python,?? How?? 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/20010213/2cc32250/attachment.html>
- Previous message (by thread): Graph (cyclic kind, not pretty picture kind) rendering algorithm?
- Next message (by thread): Can I create HTML mails in Python,?? How??
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list