How To Configure Contact Forms In Magento 2

Person Using Ipad

Are you a Magento 2 user who wants to set up a contact form on their website but has no idea how? Look no further. In this article, we’ll walk you through how to configure contact forms in Magento 2.

Speed Up Your Magento Store by 300%

Step 1: Create a New Contact Form

The first step to configuring a contact form in Magento 2 is creating a new form. Go to the admin panel and navigate to CMS > Contact Forms. Once you’re on the Contact Forms page, click on Add Contact Form.

Step 2: Set Up Contact Form Fields

After creating a new contact form, Magento 2 will take you to a page where you can set up the fields for the form. You can add custom fields or use the default fields that Magento 2 provides.

Once you’ve configured the fields, make sure to click on Save Form to save all the changes you’ve made.

Step 3: Set Up Email Template

After setting up the form fields, the next step is setting up the email template that will be used to send emails from the form. You can create a new email template or use one of the default email templates that Magento 2 provides.

Navigate to Stores > Configuration > General > Contacts and select the contact form you created from the dropdown menu. From there, click on Email Options and then Template. In the next section, input the email subject and message body. Make sure to select Save Config to save any changes.

Step 4: Configure Form Settings

The next step is to specify where the incoming emails from the contact form will be sent. Navigate to Stores > Configuration > General > Contacts, select the contact form you created from the dropdown menu, and fill in the email you want the form to be sent to.

Also, in this section, there’s a dropdown called Send Emails To. You can select whether to send the email to the form submitter, to the specified email, or both.

Step 5: Embed Form on Site

Now that you’ve set up the contact form, it’s time to embed it on the site. There are two ways to do that:

  • Copy the form’s HTML code and paste it into the CMS page or block where you want it to appear.
  • Use a widget to embed the form on a specific page.

To embed the form using a widget, navigate to Content > Widgets, create a new widget, select Contact Form from the widget type dropdown, and configure the settings for where you want the form to be displayed.


Congratulations, you now know how to configure contact forms in Magento 2. By following these simple steps, you can have a fully functional contact form on your website in no time. Remember to test the form to make sure everything is working as expected, and tweak the settings as needed to ensure optimal performance.

Scroll to Top