[Zope] Sending Attachments from LocalFS using dtml-mime DTML question..

Chris Beaumont cbeaumon at msri.org
Wed Aug 13 18:41:35 EDT 2003


I recently set up a widget to email files from a localFS directory and
it was working well for a few weeks..

However, suddenly it stopped working. I had made some changes in
permissions recently, but I undo-ed them and the problem still occurs..

Where before I would have a PDF attachment, now I simply get a file with
a PDF extension with one line, the name of the file that was supposed to
be sent.. I've been trying to figure this out for hours..

Here is the code which was working before..
_____cut here_______
<dtml-call "REQUEST.set('fileid',_['theuserid']+'.pdf')"> 

<dtml-sendmail mailhost=mailhost Mailfrom="pdfsender at msri.org" Subject="
PDF to Proof">
To: &dtml.missing-EMAIL;
<dtml-mime type=text/plain encode=7bit>
Attached is the document you requested for proofing.
<dtml-boundary name=proof.pdf type=application/pdf 
disposition=attachment encode=base64><dtml-with mylocalfs><dtml-with
pdffiles><dtml-with FinishedFolder><dtml-var
expr="_['fileid']"></dtml-with></dtml-with></dtml-with></dtml-mime></dtml-sendmail>
<p>
Please check your email for it in a few minutes.<p>

______________________

Thank you for any suggestions...

-Chris



More information about the Zope mailing list