Re: [Zope] Sending mail with attachments via Python

2005-05-03 Thread J Cameron Cooper
Kirk Strauser wrote: I'm currently trying to replace a bit of DTML with a Python script. Here's what I currently have: dtml-sendmail mailhost=outboundserver To: dtml-var recipientemail From: dtml-var senderemail Subject: dtml-var subject dtml-mime type=text/plain encode=7bit Attention dtml-var

Re: [Zope] Sending mail with attachments via Python

2005-05-03 Thread Kirk Strauser
On Tuesday 03 May 2005 15:30, J Cameron Cooper wrote: Look at the Python 'email' package: http://python.org/doc/lib/module-email.html You'll need to use External Methods to use this module, or allow access to it so that you can use Python Scripts. That's what I was afraid of. I love Zope

Re: [Zope] Sending mail with attachments via Python

2005-05-03 Thread J Cameron Cooper
Kirk Strauser wrote: On Tuesday 03 May 2005 15:30, J Cameron Cooper wrote: Look at the Python 'email' package: http://python.org/doc/lib/module-email.html You'll need to use External Methods to use this module, or allow access to it so that you can use Python Scripts. That's what I was afraid of.

Re: [Zope] Sending mail with attachments via Python

2005-05-03 Thread Kirk Strauser
On Tuesday 03 May 2005 16:09, J Cameron Cooper wrote: So you have it in DTML and want to re-write in Python but you don't want to do it in Python? No. I have it in DTML and want to re-write it in Python without involving External Methods or other hackery. Then why change it? It works,

Re: [Zope] Sending mail with attachments via Python

2005-05-03 Thread J Cameron Cooper
Kirk Strauser wrote: On Tuesday 03 May 2005 16:09, J Cameron Cooper wrote: So you have it in DTML and want to re-write in Python but you don't want to do it in Python? What's wrong with External Methods? It takes all of about 5 seconds more than a TTW Python script. They're a necessary

Re: [Zope] Sending mail with attachments via Python

2005-05-03 Thread David H
Kirk Strauser wrote: On Tuesday 03 May 2005 15:30, J Cameron Cooper wrote: Look at the Python 'email' package: http://python.org/doc/lib/module-email.html You'll need to use External Methods to use this module, or allow access to it so that you can use Python Scripts.