Skip to content

Commit 8a6762e

Browse files
committed
return result in case something needs to use it
1 parent fe2dd7c commit 8a6762e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Mailer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static function sendAccountCreated($data) {
5353
$mailer->Body = $mailHtmlBody;
5454
$mailer->AltBody = $mailPlainBody;
5555

56-
$mailer->send();
56+
return $mailer->send();
5757
}
5858

5959
public static function sendVerify($data) {
@@ -82,7 +82,7 @@ public static function sendVerify($data) {
8282
$mailer->Body = $mailHtmlBody;
8383
$mailer->AltBody = $mailPlainBody;
8484

85-
$mailer->send();
85+
return $mailer->send();
8686
}
8787

8888
public static function sendResetPassword($data) {
@@ -110,7 +110,7 @@ public static function sendResetPassword($data) {
110110
$mailer->Body = $mailHtmlBody;
111111
$mailer->AltBody = $mailPlainBody;
112112

113-
$mailer->send();
113+
return $mailer->send();
114114
}
115115

116116
public static function sendDeleteAccount($data) {
@@ -138,6 +138,6 @@ public static function sendDeleteAccount($data) {
138138
$mailer->Body = $mailHtmlBody;
139139
$mailer->AltBody = $mailPlainBody;
140140

141-
$mailer->send();
141+
return $mailer->send();
142142
}
143143
}

0 commit comments

Comments
 (0)