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
- Log in to your WordPress dashboard.
- Click on the "Plugins" menu and then click on "Add New".
- Search for "Contact Form 7" and click on the "Install Now" button.
- Activate the plugin.
Step 2: Create a New Contact Form
- Click on the "Contact" menu and then click on "Contact Forms".
- Click on the "Add New" button to create a new contact form.
- Give your form a name and description, and then click on the "Add Form" button.
Step 3: Add Form Fields
- In the form editor, click on the "Add Tag" button to add form fields.
- Choose the type of field you want to add (e.g. text, email, phone, etc.).
- Configure the field settings as needed.
- Repeat this process to add as many fields as you need.
Step 4: Set Up Mail
- In the form editor, click on the "Mail" tab.
- In the "Mail" tab, you'll see a section called "Mail Settings".
- In the "Mail Settings" section, you'll see a dropdown menu labeled "Mail".
- Select "wp_mail" from the dropdown menu. This is the default WordPress mail function.
- In the "From" field, enter the email address you want to use as the sender.
- In the "To" field, enter the email address you want to receive the form submissions at.
- In the "Subject" field, enter the subject line you want to use for the email.
- In the "Message" field, enter the message you want to include in the email.
Step 5: Add Mail Tags
- In the "Mail" tab, you'll see a section called "Mail Tags".
- In the "Mail Tags" section, you'll see a list of available mail tags.
- These mail tags allow you to insert form field values into the email.
- For example, you can insert the value of the "Name" field by using the
[your-name]
mail tag. - Repeat this process to add as many mail tags as you need.
Step 6: Save and Test the Form
- Click on the "Save" button to save the form.
- Test the form by filling out the form fields and submitting the form.
- 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.