]);
// use the Emailer class to send the message
- return Emailer::send([
+ return DI::emailer()->send([
'uid' => $params['uid'],
'fromName' => $sender_name,
'fromEmail' => $sender_email,
'htmlVersion' => $message,
'textVersion' => HTML::toPlaintext($html.$disclaimer)
];
- Emailer::send($params);
+ DI::emailer()->send($params);
}
}
}
{
return self::$dice->create(Util\Profiler::class);
}
+
+ /**
+ * @return Util\Emailer
+ */
+ public static function emailer()
+ {
+ return self::$dice->create(Util\Emailer::class);
+ }
}
* @return bool
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
- public static function send(array $params)
+ public function send(array $params)
{
$params['sent'] = false;