v0.1.10
This commit is contained in:
@@ -24,7 +24,7 @@ class SMTP
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
public function send_html(array $params)
|
||||
public function send_html(array $params): bool
|
||||
{
|
||||
if (!isset($params['address'])){
|
||||
return false;
|
||||
@@ -35,6 +35,6 @@ class SMTP
|
||||
$body = $params['body'] ?? 'Нет информации';
|
||||
$this->mail->msgHTML($body);
|
||||
|
||||
$this->mail->send();
|
||||
return $this->mail->send();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user