Setting Up Mail for [Contact Form 7]

From: Contact Form 7

Setting Up Mail

Contact Form 7 allows you to edit mail templates very flexibly. You are able to edit not only the message body, but also message header fields. And you can manage HTML mail as well. In this article, I’ll show you the settings for each field and explain how to set up your mail with these settings.

Fields in the Mail tab panel

You can edit mail templates in the Mail tab panel.

Screenshot image of the mail tab


mail1: From field: [your-name] <[your-email]>

mail2: From field: Chinese Acupuncture <>

mail2: Message Body:

Someone sent the following message on your behave. If you did not send this message please contact us at


Basic header fields (ToFrom and Subject)

These are basic and necessary message header fields; and you can embed mail-tags anywhere in these fields.

Additional headers

You can insert additional message header fields here, such as Cc and Bcc. There should be one field per line. You can embed mail-tags anywhere in these fields.

Message body

This is the message body; you can embed mail-tags anywhere in this field.

If you check Exclude lines with blank mail-tags from output box, lines including mail-tags that have empty values will be excluded from the message body of the actual mail output.

By default, plain text is used for the message body. To use HTML, check Use HTML content type box.

File attachments

If you attach uploaded files to this mail, put mail-tags for the uploaded files into this field. You can also attach files from the server (local file attachment).

Mail (2)

Mail (2) is an additional mail template. It is often used as an autoresponder, but you can use it for any purpose. Mail (2) is sent only when the primary Mail has been sent successfully.


 534 total views

Author: Albert

Leave a Reply