25 Aug
2003
25 Aug
'03
3:45 p.m.
Hi all, How can I send an email with an attachment from a python script? Right now, we are using a script that looks as follows: mailhost=context.MailHost mailApproval = context.mail_template(context, email=email) mailhost.send(mailApproval) where "mail_template" is a page template that looks as follows: To: <span tal:replace="options/email" /> From: "<span tal:replace="here/email_from_address" />" Subject: A Subject Content-Type: text/plain; charset=<span tal:replace="here/portal_properties/site_properties/default_charset" /> BODY BODY BODY BODY BODY BODY BODY BODY BODY BODY BODY BODY BODY Anybody has an idea to add an attachment to this? Regards, -- Jean Baltus