Skip to content

Invoice emails sent even when disabled if Experius EmailCatcher is enabled #83

@sumitvgupta

Description

@sumitvgupta

Summary

When Experius EmailCatcher is enabled, invoice emails are sent even though they are explicitly disabled in Magento configuration. The module overrides Magento’s native email enable/disable logic.

Steps to Reproduce

  1. Enable the module:

php bin/magento module:enable Experius_EmailCatcher
php bin/magento setup:upgrade

  1. Disable invoice emails:

Stores > Configuration > Sales > Sales Emails > Invoice

Set Enabled = No

  1. Ensure EmailCatcher is enabled:

Stores > Configuration > Advanced > Email Catcher

Enable = Yes

  1. Place an order

  2. You will receive an invoice email even it's disabled from configurations.

❌ Actual Result

  • Invoice email is sent to the customer
  • Magento setting sales_email/invoice/enabled = 0 is ignored
  • Email is logged and sent unlessa whitelist is configured

✅ Expected Result

  • The invoice email should not be sent
  • EmailCatcher should respect Magento’s native email configuration
  • Disabled email types should remain disabled in production

FYI: This issue also occurs with other transaction emails.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions