magento2: Magento 2.3 contact form not sending emails( No log entry)
Preconditions
Magento 2.4-develop
Steps to reproduce (*)
- Add
throw new LocalizedException(__('test localized exception'));before https://github.com/magento/magento2/blob/2268edc5cadfb7b0fbf0e998a23abd60a4608efb/app/code/Magento/Contact/Controller/Index/Post.php#L75 - Enter the contact form
- Send a message
Expected result (*)
- Exception with stack trace is logged
Actual result (*)
- No log entry in any of the Magento, PHP or Apache logs that provides any insight
Original case: Preconditions Magento 2.3.0, 2.3.1 or 2.3.2 CE
- sendmail is installed and working (Courier-MTA on Debian 10)
- php mail() command working fine
- order status emails are being send fine
Steps to reproduce (*)
- enter the contact form
- send a message
Expected result (*)
- email is sent
Actual result (*) 1**. as a user get a generic error message that email could not be sent** 2. No log entry in any of the Magento, PHP or Apache logs that provides any insight
Since order status emails can be sent, Magento is clearly capable of sending emails to users. At the very least, there must be a log entry THAT something happend and best even provide inside what needs fixing. Currently there is no log entry at all. Not even on DEBUG level.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 24 (11 by maintainers)
The automatic text block fails to mention if this ticket will be updated with status (fixed, wontfix, notreproducable,closed,…) information as well as release-information when MV-31077 gets status updates (such as when it gets closed as fixed and assigned to a release).