Re: PGF send text mails

Yuri <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <[email protected]>
Hi!

I had the exactly same problem and solved using:

<span tal:replace="form/myfieldid" />

if can also use:

<span tal:replace="fpython:form['myfieldid']" />



Il 27/11/2014 10:36, Ralf Hemmecke ha scritto:
> 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
> _______________________________________________
> Plone-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/plone-users


------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.