[Zope] <dtml-mime>

Daniel Hoffman dan at afinitech.net
Tue Dec 9 19:22:37 EST 2003


My question is about sending an HTML attachment with the mime tag. I have
tried every combination of the mime tags arguments, but I cannot get a true
attachment. The HTML comes out concantenated to the message. This works ok
for some mail clients but not MS products that my clients use (the ones who
pay the bills). Can someone help please?

code:

dtml-var small_html_header>
<dtml-sendmail smtphost=x.x.x.x>
To:<<dtml-in expr="client_print(t_client=c_client)"><dtml-var
c_email></dtml-in>>
From:automatic invoicing foo at bar.com
Date:<dtml-var ZopeTime fmt="rfc822">
Subject:Invoice# <dtml-var i_invoice>-<dtml-var "ZopeTime()" fmt="%y%m%d">

<dtml-mime type=text/plain encode=7bit>

<dtml-boundary type=text encode=7bit name=invoice.html>

<dtml-var expr="invoiceprintemail(_.None,_)">

</dtml-mime>

</dtml-sendmail>

<h3>email was sent</h3>

<dtml-var standard_html_footer>




More information about the Zope mailing list