Replies: 2 comments 1 reply
-
As an alternative, for your consideration, the module aschroder/smtp_pro has many events related to e-mails - you can search for |
Beta Was this translation helpful? Give feedback.
-
You could rewrite the Customer model overwriting just the one method to fire an event, before calling the parent method. Then you could use an observer to do what you're looking to do. It's not all that messy really. That solves your problem short term. Why not then create a feature request for "customer_email_" prefixed email events... suggesting your then one of us can implement it one go. Example:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description (*)
Because of PR #1438 I was thinking about having even more events around email, because as of know its difficult (to my knowledge) to disable certain emails from sending out.
For instance I have a client which wants
\Mage_Customer_Model_Customer::sendChangedPasswordOrEmail
to never fire.To do this, to my knowledge, you have to extend the full class. Which is ugly and not really that good in my opinion.
Adding more events around emails in the right places (which I currently do not know) would make it easy to disable certain emails from being sent out, right?
Expected behavior (*)
Having events in the right places added.
Beta Was this translation helpful? Give feedback.
All reactions