How to format the email message sent by a form?

Frequently Asked Questions about WYSIWYG Web Builder
Locked
User avatar
Pablo
 
Posts: 22488
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

How to format the email message sent by a form?

Post by Pablo »

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 WWB 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.

Image

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

Image

Step 4
Click 'Edit' to format the text

Image

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.
Locked