Fix invalid "emailer_prepare" Hook

- Use IEmail instead of array data
- Introduce "composer" based library for phpmailer
This commit is contained in:
nupplaPhil 2020-01-29 20:20:40 +01:00
parent db9f75fbdb
commit f6aea0d65a
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
3 changed files with 24 additions and 5 deletions

View file

@ -45,11 +45,9 @@ class Emailer
*/
public function send(IEmail $email)
{
$params['sent'] = false;
Hook::callAll('emailer_send_prepare', $email);
Hook::callAll('emailer_send_prepare', $params);
if ($params['sent']) {
if (empty($email)) {
return true;
}