Change 'Contact Form' email title in Magento?

Change 'Contact Form' email title in Magento?

October 11, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Change 'Contact Form' email title in Magento?

Changing Email Subject Lines for Contact Forms in Magento

Managing multiple Magento stores from a single admin panel can be a powerful way to streamline your e-commerce operations. However, it also brings its own set of challenges when it comes to customizing the default behavior of built-in features.

One common issue is how to differentiate contact form submissions between different sites. By default, all Magento contact forms send an email with the subject line “Contact Form”. But if you’re running multiple stores, this can quickly become confusing.

Understanding the Default Behavior

Before we dive into changing the subject line, let’s understand where this default setting comes from. In Magento 2, the subject of a contact form email is defined in the contact_email_template template file located at:

app/design/frontend/<Vendor>/<Theme>/Magento_Contact/template/email/contact_email_template.html

The subject line is hardcoded as “Contact Form” within this template.

Changing the Subject Line for a Single Store

If you only need to change the subject line for a single store, you can override this template file in your custom theme. Here’s how:

  1. Create a new directory structure under your custom theme: app/design/frontend/<Vendor>/<Theme>/Magento_Contact/template/email.

  2. Copy the contact_email_template.html file from the Magento_Contact module into this new directory.

  3. Open the copied template file and find the line that reads:

Subject: Contact Form
  1. Change it to the desired subject, for example:
Subject: Site 1 Form
  1. Save your changes.

  2. Flush the cache in Magento admin (System > Cache Management).

This will ensure that when a user submits a contact form on that specific store, the email will have the new subject line you’ve defined.

Changing the Subject Line for All Stores

If you want to apply this change across all your managed stores, it’s better to use Magento’s multi-store feature. Here’s how:

  1. In the Magento admin panel, navigate to Stores > Settings > Configuration.

  2. Under General, click on ‘Contact’.

  3. Find the field labeled “Email Template for Contact Form”.

  4. Select the new template you want to apply across all stores.

  5. Save your changes and flush the cache.

This will change the subject line of contact form emails for all managed stores in your Magento setup at once.

Conclusion

Changing the email subject line for Magento contact forms is a simple yet effective way to bring order to your multi-store admin experience. Whether you’re overriding templates directly or using Magento’s built-in configuration, these methods ensure that each store maintains its unique identity even when sharing an admin panel.

Remember, direct template overrides should be used sparingly, as they can make upgrades more complex. For long-term stability and ease of management, consider using the multi-store feature for such global changes.

For a deep dive into Magento template customization, check out our comprehensive guide on Magento 2 Theme Development.

Magento 2 Extensions Themes Admin

Our network