How to format the email message sent by a form?

Frequently Asked Questions about WYSIWYG Web Builder
User avatar
Posts: 24769
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe

How to format the email message sent by a form?

Post by Pablo » Wed Dec 03, 2014 9:23 pm

By default the submitted data of a form will be sent in plain text format. You have little control this format because the email application determines how it will be displayed to the user.
However in WWB10 we have added the ability to format the message.

Step 1
Make sure the built-in form processor is enabled.

Step 2
Click Message->Edit in the Form's properties.


Step 3
Select 'Rich Text' as the email format.


Step 4
Click 'Edit' to format the text


Note: if you select 'Rich text' (or HTML) then the submitted data will not be included by default otherwise there was no way to format it.
You will have to use variable to include the form data:

Code: Select all

The following data has been submitted to the online form:
Name: $name
Email: $email
Website: $website
Where name, email and website are the names of the form fields plus dollar sign. So if the field name is 'name' then the variable name will be '$name'.

When you select 'rich text' or 'HTML', the mail engine (in Advanced->Mail Engine) will automatically be set to 'Use PHP mailer', because PHP's standard mail() function does not support formatted messages.