[Zope] sending attachments

Vital Lobachevsky tick at web.vi
Tue May 31 11:59:37 EDT 2005


Varun Parange wrote:
> hi,
>  
> is it possible to send mails with attachments using Zope MailHost??
> if so,...how do u achieve it?

I use DTML method to send .csv-file as attachment:


<dtml-sendmail mailhost="MailHost">
To: <dtml-var msgTo>
From: <dtml-var msgFrom>
Subject: <dtml-var msgSbj>
<dtml-mime type="text/plain" encode="7bit">

<dtml-var msgBody>

<dtml-boundary type="text/csv" disposition="attachment"
encode="base64" filename="addresses.csv"><dtml-var 
expr="msgFile"></dtml-mime>
</dtml-sendmail>


I hope it helps.




More information about the Zope mailing list