Daniel Hoffman wrote at 2003-12-9 18:22 -0600:
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@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>
Remove the empty line between "Subject" and "<dtml-mime ...". "<dtml-mime" must be part of the mail header. An empty line separates the mail header from the mail body. -- Dieter