Contact Confirmation
Module: Magenx_ContactConfirmation · no storefront or GraphQL changes
Stock Magento emails the store owner when someone sends the contact form, but tells the visitor nothing. This module also sends the visitor an automatic confirmation, with their name and message, from a template you can edit.
How it works
Section titled “How it works”- It works for the storefront’s
contactUsGraphQL mutation and the classic contact page alike. - The confirmation is sent after the store-owner email. If it fails, the failure is logged and the owner email is not affected.
- Settings are per store view, so each language can have its own template, or none.
The template is Contact Form Confirmation. Edit it under Marketing > Email Templates (Add New Template, then Load Template).
No confirmation arrives
Section titled “No confirmation arrives”Every skipped send is logged:
var/log/debug.log: disabled for this store, or sent.var/log/system.log: no visitor email in the submission, no template set, or the send failed.
An empty log after a submission means the module did not run. Check that it is enabled.
User flows
Section titled “User flows”Visitor submits
- The visitor submits the form.
- The owner notification is sent as before.
- The visitor then receives an auto-reply that greets them, confirms receipt and repeats their message.
These always hold:
- Owner notification and form response are the same with or without this feature.
- The auto-reply goes only to the address typed into the form.
Edge cases
Section titled “Edge cases”| Situation | What happens |
|---|---|
| Submission through the storefront API. | Auto-reply includes name and message. |
| Mail server down for the auto-reply. | Form succeeds; error logged. |
| Owner notification fails. | No auto-reply. |
| A help desk that acknowledges submissions is also active. | Merchant switches this feature off to avoid two emails. |
Who it applies to
Section titled “Who it applies to”- Every contact form submission in store views where the feature is on.
Out of scope
Section titled “Out of scope”- Storing submissions or creating support tickets (a help desk does that and replaces this feature).
- Spam protection (the storefront's bot check does that).
- Attachments in the auto-reply.
Install
Section titled “Install”composer require magenxcommerce/module-contact-confirmationbin/magento module:enable Magenx_ContactConfirmationbin/magento setup:upgradebin/magento setup:di:compile # production mode onlybin/magento cache:flush- PHP
~8.4.0||~8.5.0, Magento 2.4.8.
It is on as soon as it is installed. Set Send Confirmation Email to No to keep it installed but silent.
Configuration
Section titled “Configuration”Stores > Configuration > General > Contacts
Auto-Reply Confirmation Email
| Setting | Default | Scope | Notes |
|---|---|---|---|
Send Confirmation Emailcontact/ | Yes | Store view | Yes/No. Email the visitor a confirmation/auto-reply after they submit the contact form. |
Email Templatecontact/ | Module's default template | Store view | Dropdown. Shown when Send Confirmation Email = Yes. Email template chosen for the auto-reply. |
Email Sendercontact/ | General Contact | Store view | Dropdown. Shown when Send Confirmation Email = Yes. Store email identity used as the From address. |
Glossary
Section titled “Glossary”| Term | Meaning |
|---|---|
| Owner notification | The existing email to the store's contact address. |
| Auto-reply | The confirmation email to the visitor. |
| Submission | Name, email, telephone and message from the form. |