How to setup contact form 7 mail in wordpress

Contact Form 7 is a popular WordPress plugin for creating contact forms. To set up Contact Form 7 to send emails, follow these steps:

Step 1: Install and Activate Contact Form 7

  1. Log in to your WordPress dashboard.
  2. Click on the "Plugins" menu and then click on "Add New".
  3. Search for "Contact Form 7" and click on the "Install Now" button.
  4. Activate the plugin.

Step 2: Create a New Contact Form

  1. Click on the "Contact" menu and then click on "Contact Forms".
  2. Click on the "Add New" button to create a new contact form.
  3. Give your form a name and description, and then click on the "Add Form" button.

Step 3: Add Form Fields

  1. In the form editor, click on the "Add Tag" button to add form fields.
  2. Choose the type of field you want to add (e.g. text, email, phone, etc.).
  3. Configure the field settings as needed.
  4. Repeat this process to add as many fields as you need.

Step 4: Set Up Mail

  1. In the form editor, click on the "Mail" tab.
  2. In the "Mail" tab, you'll see a section called "Mail Settings".
  3. In the "Mail Settings" section, you'll see a dropdown menu labeled "Mail".
  4. Select "wp_mail" from the dropdown menu. This is the default WordPress mail function.
  5. In the "From" field, enter the email address you want to use as the sender.
  6. In the "To" field, enter the email address you want to receive the form submissions at.
  7. In the "Subject" field, enter the subject line you want to use for the email.
  8. In the "Message" field, enter the message you want to include in the email.

Step 5: Add Mail Tags

  1. In the "Mail" tab, you'll see a section called "Mail Tags".
  2. In the "Mail Tags" section, you'll see a list of available mail tags.
  3. These mail tags allow you to insert form field values into the email.
  4. For example, you can insert the value of the "Name" field by using the [your-name] mail tag.
  5. Repeat this process to add as many mail tags as you need.

Step 6: Save and Test the Form

  1. Click on the "Save" button to save the form.
  2. Test the form by filling out the form fields and submitting the form.
  3. Check your email to see if the form submission was sent successfully.

That's it! With these steps, you should be able to set up Contact Form 7 to send emails in WordPress.