[Zope] Send an email with attachment (from a python script)
Jean Baltus
jean.baltus at africamuseum.be
Mon Aug 25 18:45:20 EDT 2003
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.zope.org/pipermail/zope/attachments/20030825/a6c74079/attachment.htm
More information about the Zope
mailing list