Skip to content

Commit 7bb4417

Browse files
authored
add retry
1 parent 0554a40 commit 7bb4417

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

core/class/mail.class.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,13 @@ public function execute($_options = null) {
190190
$mail->addAttachment($file);
191191
}
192192
}
193+
try {
194+
return $mail->send();
195+
} catch (\Throwable $th) {
196+
sleep(30);
197+
}
193198
return $mail->send();
199+
194200
}
195201

196202
/* * **********************Getteur Setteur*************************** */

0 commit comments

Comments
 (0)