Plugin Directory

Contact Form to Email

Contact form that sends the data to email and also to a database list and CSV file.

Other Notes

Opening the contact form messages in Excel: Go either to the "Reports" or "Messages" section. There is a button labeled "Export to CSV". CSV files can be opened in Excel, just double-click the downloaded CSV file, it will contain the selected contact form submissions, one per line.

Deleting a contact form message: Go to the "Messages" section and use the button labeled "Delete" for the contact form message you want to delete. Each row in that list is a contact form submission.

Get the contact form email from the user: The email used as from is a fixed email specified on the contact form settings, this helps to prevent be classified as spam, however when you hit "reply" over the received email, the user's email address will appear allow you to easily reply the contact form messages. The header "Reply-to" is used for this purpose.

Customizing the captcha image: The captcha image used in the contact form is 100% implemented into the plugin, this way you don't need to rely on third party services/servers. In addition to the settings for customizing the captcha design you can also replace the font files located into the folder "contact-form-to-email/captcha/". The fonts are used as base for rendering the captcha on the contact form.

Contact form email format: The notifications emails sent from the contact form can be either plain-text emails or HTML emails. Plain text emails are preferred in most cases since are easier to edit and pass the anti-spam filters with more probability.

Contact form Clone button: The clone button duplicates a complete contact form with its settings. The contact form messages / emails and statistics aren't duplicated.

Custom contact form submit button

There is a settings section info each form that allows to specify the label of the submit button.

The class="pbSubmit" can be used to modify the button styles.

The styles can be applied into any of the CSS files of your theme or into the CSS file "contact-form-to-email\css\stylepublic.css".

For further modifications the submit button is located at the end of the file "cp-public-int.inc.php".

For general CSS styles modifications to the form and samples check this FAQ entry: http://wordpress.dwbooster.com/faq/contact-form-to-email#q77

Customizing the automatic email reports

The settings for the email reports (both the global and per form reports) include the following configuration fields:

  • Enable Reports?: Option for enabling / disabling the reports.
  • Send report every: Indicate every how many days the reports will be sent.
  • Send after this hour (server time): Approximate time at which the reports will be sent. This time is based on the server time. Some activity is needed on the website for sending the reports. You can setup a cron for a more exact delivery time.
  • Send email from: The "from" email used for the reports. Avoid @aol.com and @hotmail.com "from" addresses to skip the anti-spam filters.
  • Send to email(s): The list of emails (comma separated) that will receive the reports.
  • Email subject: Subject of the email that will be sent with the Contact Form to Email reports.
  • Email format?: Format of the email that will be sent with the Contact Form to Email reports. Can be HTML or Plain Text. In most cases plain text is easier to setup and has less problems with anti-spam services.
  • Email Text (CSV file will be attached): Content of the email that will contain the Contact Form to Email reports. The reports will be attached in CSV format into the email.

The contact form database

The messages received via the contact form are stored into the WordPress contact form database table "wp_cftemail_messages". You can export that data in form of automatic email reports or in CSV/Excel format from the messages list area. If needed you can also query that table directly for further processing of the contact form data.

Importing messages

There is an option to import messages into the Contact Form to Email plugin. That option is located below the messages list and is labeled "Import CSV".

The messages can be imported in a comma separated CSV file. One record per line, one field per column. Don't use a header row with the field names.

The first 3 columns into the CSV file are the time, IP address and email address, if you don't have this information then leave the first three columns empty. After those initial columns the fields (columns) must appear in the same order than in the form.

Sample format for the CSV file:

2013-04-21 18:50:00,, john@sample.com, "john@sample.com", "sample subject", "sample message"
2013-05-16 20:49:00,, jane.smith@sample.com, "jane.smith@sample.com", "other subject", "other message"

From address used for the emails

Into the "Form Processing / Email Settings" section the first settings field is named "Send email "From" and has the following options:

  • From fixed email address indicated below - Recommended option: If you select "from fixed..." the customer email address will appear in the "to" address when you hit "reply", this is the recommended setting to avoid mail server restrictions.

  • From the email address indicated by the customer: If you select "from customer email" then the customer email will appear also visually when you receive the email, but this isn't supported by all hosting services, so this option isn't recommended in most cases.

The drag and drop contact form builder

The Form Builder lets you to add/edit/remove fields into the contact form and also to specify the validation rules for your contact form (required fields, email fields, etc...).

The following field types are currently available in the version published at this WordPress directory:

  • Single Line Text: Classic one-line text input.
  • Email: This field validates that the email address has a valid format.
  • Paragraph Text: Classic multi-line (textarea) text input.

In other versions of the plugin the following field are also available: Numeric field with specific validations, Date-picker, Checkboxes, Multiple Choice Radio buttons, Dropdown / Select, Upload file fields, Password, Phone with specific validations, static texts, section breaks and page breaks for multi-page contact forms.

Other features in the contact form builder:

  • Equal fields validation: Use it for example to confirm if the email or text typed in two different fields are the same. This is valid for "Single Line Text" and "Email" fields.

  • Dependent fields: Use this feature for show/hide fields (any field type) based in the selection made on other fields (checkboxes, radiobuttons or select/drop-down fields). This feature isn't fully available in this version since the related fields aren't included.

Editing the field settings in the Contact Form Builder:

When you click a field already added into the contact form builder area, you can edit its details and validation rules. The following properties are available:

  • Field Label: Label for the field in the public contact form and into the email.
  • Field tag for the message: In addition to the general %INFORMATION% tag, you can use this tag to show the field value into a specific tag of the email. More info at the WordPress Contact Form to Email FAQ.
  • Specific settings: The settings depends of the field type.
  • Validation rule: The validation rules depends of the field type, example: required, valid email, ...
  • Predefined value: Pre-filled value for the field, if any.
  • Instructions for user: This text will appear in a smaller form below the field. It's useful for giving instructions to the user.
  • Add CSS layout keywords: Customize the look & feel. More info at the WordPress Contact Form to Email FAQ.

Requires: 3.0.5 or higher
Compatible up to: 4.4
Last Updated: 4 days ago
Active Installs: 40,000+


3.8 out of 5 stars


7 of 8 support threads in the last two months have been resolved.

Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,4,4