Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I'm using the commerce_email module, to send emails to customers upon events fired.
When an order is complete, I do send an email to the customer with info about tracking codes and so o, and want to attach an pdf with further info about tracking, is that possible, and how ?
Suddenly, our production system has stopped sending most emails. The logs just show “error sending email”, but on the page after you submit a form, it says “Unable to send email. Contact the site administrator if the problem persists.” . This happens when a user signs up for an account and on a custom module I created. There are no errors in the system maillog file.
To try to debug, I installed the simple Send Mails module. It sends mail without issue! Looking at its code and my custom module’s code, the mailManager call is almost the same.
As title suggest local tasks by default adds "route" cache context but my client somehow avoided it. All tabs on all pages looks the same.
I am struggling to recreate this issue and I suspect this is random case because it happened more than once in last 2-3 weeks, but it seems random. Before that everything was working fine for ages. I am using Drupal 10.2.2.
Any idea or lead how this happened would help, because I am running out of ideas. Thanks in advance.