Skip to content

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.

  • It works for the storefront’s contactUs GraphQL 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).

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.

Visitor submits

  1. The visitor submits the form.
  2. The owner notification is sent as before.
  3. 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.
SituationWhat 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.
  • Every contact form submission in store views where the feature is on.
  • 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.
Terminal window
composer require magenxcommerce/module-contact-confirmation
bin/magento module:enable Magenx_ContactConfirmation
bin/magento setup:upgrade
bin/magento setup:di:compile # production mode only
bin/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.

Stores > Configuration > General > Contacts

Auto-Reply Confirmation Email

SettingDefaultScopeNotes
Send Confirmation Email
contact/magenx_confirmation/enabled
YesStore viewYes/No. Email the visitor a confirmation/auto-reply after they submit the contact form.
Email Template
contact/magenx_confirmation/email_template
Module's default templateStore viewDropdown. Shown when Send Confirmation Email = Yes. Email template chosen for the auto-reply.
Email Sender
contact/magenx_confirmation/sender_email_identity
General ContactStore viewDropdown. Shown when Send Confirmation Email = Yes. Store email identity used as the From address.
TermMeaning
Owner notificationThe existing email to the store's contact address.
Auto-replyThe confirmation email to the visitor.
SubmissionName, email, telephone and message from the form.