HTML/PlainText alternate eMails from Zope
Hello, I want to send eMail from Zope that automatically shows HTML to HTML-enabled eMail clients and PlainText otherwise. It seems to concern a boundary of type? alternate. I'm not very versed in eMail and its protocols. I was hoping one of the DTML sendmail options would achieve this. Anyone know how to do this? Or some keywords for Google other than HTML eMail boundary or alternate? Thanks, Jon Cyr cyrj@cyr.info
Something like this? <dtml-var standard_html_header> <dtml-sendmail mailhost="MailHost"> From: david@calteg.org To: technique@oceanicsky.com Subject: mailTest MIME-Version: 1.0 X-Mailer: Zope <dtml-mime type="text/html" encode="quoted-printable"> <strong>HTML</strong> here </dtml-mime> <dtml-mime type="text/plain"> plain text </dtml-mime> </dtml-sendmail> On Aug 13, 2004, at 12:13 PM, Jonathan Cyr wrote:
Hello,
I want to send eMail from Zope that automatically shows HTML to HTML-enabled eMail clients and PlainText otherwise.
It seems to concern a boundary of type? alternate. I'm not very versed in eMail and its protocols. I was hoping one of the DTML sendmail options would achieve this. Anyone know how to do this? Or some keywords for Google other than HTML eMail boundary or alternate?
Thanks,
Jon Cyr cyrj@cyr.info _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Wow, simple and I'd never heard of "quoted-printable" before, very much appreciated. -Jon David Siedband wrote:
Something like this?
<dtml-var standard_html_header>
<dtml-sendmail mailhost="MailHost"> From: david@calteg.org To: technique@oceanicsky.com Subject: mailTest MIME-Version: 1.0 X-Mailer: Zope <dtml-mime type="text/html" encode="quoted-printable">
<strong>HTML</strong> here
</dtml-mime>
<dtml-mime type="text/plain">
plain text
</dtml-mime> </dtml-sendmail>
On Aug 13, 2004, at 12:13 PM, Jonathan Cyr wrote:
Hello,
I want to send eMail from Zope that automatically shows HTML to HTML-enabled eMail clients and PlainText otherwise.
It seems to concern a boundary of type? alternate. I'm not very versed in eMail and its protocols. I was hoping one of the DTML sendmail options would achieve this. Anyone know how to do this? Or some keywords for Google other than HTML eMail boundary or alternate?
Thanks,
Jon Cyr cyrj@cyr.info _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Jonathan Cyr wrote at 2004-8-13 15:13 -0400:
I want to send eMail from Zope that automatically shows HTML to HTML-enabled eMail clients and PlainText otherwise.
Search for "multipart/alternative". You will also need the "dtml-mime" tag. -- Dieter
participants (3)
-
David Siedband -
Dieter Maurer -
Jonathan Cyr