|
|
|
@ -314,7 +314,10 @@ Emailer.sendToEmail = async (template, email, language, params) => {
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
if (Plugins.hooks.hasListeners('filter:email.send')) {
|
|
|
|
|
// Deprecated, remove in v1.18.0
|
|
|
|
|
await Plugins.hooks.fire('filter:email.send', data);
|
|
|
|
|
} else if (Plugins.hooks.hasListeners('static:email.send')) {
|
|
|
|
|
await Plugins.hooks.fire('static:email.send', data);
|
|
|
|
|
} else {
|
|
|
|
|
await Emailer.sendViaFallback(data);
|
|
|
|
|
}
|
|
|
|
|