[Zope] Send file from LocalFS as an attachment??

Vid B zoops4@yahoo.com
Tue, 10 Jul 2001 14:12:31 -0700 (PDT)


Hi All,

Sending mail with attached files from Zope database
works fine, but if I try to send pdf document from
LocalFS e-mail gets sent 
- everything looks fine, BUT when I open attachment in
Acrobat Reader it complains 'it is not PDF file'.

This is what I am using

<dtml-sendmail mailhost="MailHost">
From: vidb@fanweb.ca
To: vidb@fanweb.ca
Date: <dtml-var ZopeTime fmt="rfc822">
Subject: Testmessage
<dtml-mime type="text/plain" encode="7bit">

testmessage textbody

<dtml-boundary type="application/pdf"
disposition="attachment"
encode="base64" filename="testfile.pdf"><dtml-with
locimg><dtml-var
"_['June2001.pdf']."></dtml-with></dtml-mime>
</dtml-sendmail>

I will be thankful for any hints.

Vid

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/