mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-11-09 19:20:09 +01:00
feat: email retry page on 550 rejection; confirmation_email optional in admin form
This commit is contained in:
1 parent
898a87789b
commit
da53bf5d7a
9 files changed
+260
-14
No files matched your search
@@ -102,9 +102,8 @@ class StudentEmail {
|
||||
try {
|
||||
$result = SmtpRelay::send($db, $to, $subject, $htmlBody);
|
||||
} catch (SmtpSendException $e) {
|
||||
// Confirmation email failure must not abort the successful submission.
|
||||
error_log("[StudentEmail] SMTP error sending to {$to} for thesis #{$thesisId}: " . $e->getMessage());
|
||||
return false;
|
||||
throw $e; // re-throw so callers can react (e.g. redirect to retry page)
|
||||
}
|
||||
|
||||
if ($result) {
|
||||
|
||||
Reference in new issue
Block a user