How to send mail using contact form 7 in wordpress

Contact Form 7 is a popular WordPress plugin for creating contact forms. To send mail using Contact Form 7, you'll need to follow these steps:

Step 1: Install and Activate Contact Form 7

If you haven't already, install and activate the Contact Form 7 plugin in your WordPress dashboard.

Step 2: Create a New Form

Go to Contact > Forms in your WordPress dashboard and click on "Add New" to create a new form. Give your form a name and description, then click "Add Form".

Step 3: Add Form Fields

In the form editor, add the fields you want to include in your form. You can add text fields, email fields, phone fields, and more. For example, you might add fields for name, email, message, and phone number.

Step 4: Configure Mail Settings

To send mail using Contact Form 7, you need to configure the mail settings. Click on the "Mail" tab in the form editor and select "Send mail on form success" to enable mail sending.

Step 5: Set Up Mail Recipient

In the "Mail" tab, you can set up the mail recipient(s). You can add multiple recipients by separating their email addresses with commas. For example: [email protected], [email protected]

Step 6: Set Up Mail Subject and Message

In the "Mail" tab, you can set up the mail subject and message. The subject and message will be populated with the form data. For example, you can use the following code to include the form data in the message:

Dear {your-name},

Thank you for contacting us. Your message is:

{your-message}

Best regards,
[Your Name]

Step 7: Save and Publish the Form

Save and publish the form. You can then add the form to your WordPress page or post using the [contact-form-7 id="your-form-id" title="your-form-title"] shortcode.

Step 8: Test the Form

Test the form by submitting it and checking your email inbox. The form should send an email to the recipient(s) with the form data.

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