Skip to content

Commit

Permalink
add retry
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Dec 2, 2024
1 parent 0554a40 commit 7bb4417
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/class/mail.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,13 @@ public function execute($_options = null) {
$mail->addAttachment($file);
}
}
try {
return $mail->send();
} catch (\Throwable $th) {
sleep(30);
}
return $mail->send();

}

/* * **********************Getteur Setteur*************************** */
Expand Down

0 comments on commit 7bb4417

Please sign in to comment.