PGF send text mails
Ralf Hemmecke <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.user |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I'm using PloneFormGen and send mail with it's mailer.
By default, it sends out in HTML. Now there were problems with
spamassassin who considered HTML-ONLY mails as spam.
I would like to turn the PGF mail template into something that looks
formatted, but is no html.
I'm pretty far already.
<tal:block repeat="field options/wrappedFields | nothing">
==========================================================
<dt tal:replace="field/fgField/widget/label" />
==========================================================
<dd tal:replace="structure python:field.htmlValue(request)" />
</tal:block>
But the problem is "python:field.htmlValue(request)". That, of course,
generates HTML for the content. So in particular for TextFields I get
out something like this.
<div>blah blah
<br />faor rowh
<br />dflsj0w</div>
Unfortunately, I don't know where I should look to find out about a
function name that gives back the plain value of the field (as ordinary
text) and not its htmlValue.
Any hints are welcome.
Thank you
Ralf
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk