Fix callback example
This commit is contained in:
parent
d3eabffd0c
commit
da739aa763
|
|
@ -61,7 +61,6 @@ try {
|
|||
|
||||
//Alternative approach using a closure
|
||||
try {
|
||||
$mail->isMail();
|
||||
$mail->action_function = function ($result, $to, $cc, $bcc, $subject, $body) {
|
||||
if ($result) {
|
||||
echo "Message sent successfully\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue