Skip to content. | Skip to navigation

Personal tools
You are here: Home CMS Power Users Formmailer - Send default email as text

Formmailer - Send default email as text

basic example how to send the default formMailer content as text (instead of HTML)

  1. hit your FormMailer form's 'edit' tab

  2. select the '[template]' link

  3. Set Mail Body Type to 'text/plain'.

  4. Cut and paste the following into your FormMailer template to have the default email content mailed in plain text instead of HTML:

    <tal:block i18n:domain="pfm" tal:define="form here/form; groups form/get_groups;"><tal:block tal:repeat="group groups"><tal:block condition="python:group!='Default'" tal:replace="python:group + ': \n' "/><tal:block tal:repeat="field python:form.get_fields_in_group(group)">  <tal:block content="field/title" />: <tal:block repeat="line field/mailsplitter"><tal:block replace="line"/>
    </tal:block></tal:block>
    </tal:block>
    <tal:block replace="here/getFooter" />
    </tal:block>
    
Document Actions