Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.
You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page
Hook | actionEmailSendBefore |
---|---|
Locations | FO |
Type | action |
Origin | core |
Aliases | |
Description | This hook is used to filter the content or the metadata of an email before sending it or even prevent its sending |
This hook has an $array_return
parameter set to true
(module output will be set by name in an array, see explaination here).
Origin | File |
---|---|
core | classes/Mail.php |
Hook::exec(
'actionEmailSendBefore',
[
'idLang' => &$idLang,
'template' => &$template,
'subject' => &$subject,
'templateVars' => &$templateVars,
'to' => &$to,
'toName' => &$toName,
'from' => &$from,
'fromName' => &$fromName,
'fileAttachment' => &$fileAttachment,
'mode_smtp' => &$mode_smtp,
'templatePath' => &$templatePath,
'die' => &$die,
'idShop' => &$idShop,
'bcc' => &$bcc,
'replyTo' => &$replyTo,
],
null,
true
)