fix(smtp-test): catch SmtpSendException to surface delivery errors as flash messages

This commit is contained in:
Pontoporeia
2026-04-30 13:37:42 +02:00
parent 19784090a3
commit 898a87789b
3 changed files with 19 additions and 8 deletions

View File

@@ -17,6 +17,9 @@
- [x] **add.php / edit.php / partage/index.php** — use `sortable.min.js` + `file-upload-queue.js` instead of `file-preview.js`
- [x] **docs/file-uploads.md** — reference document covering accepted types, size limits, storage layout, ordering, labels, security, and source file index
## Bug fixes
- [x] **smtp-test.php** — wrap `SmtpRelay::send()` in `try/catch SmtpSendException` so SMTP delivery failures (e.g. 550 recipient rejected) surface as a proper flash error instead of an uncaught exception/silent crash
## Previously completed
- [x] Multi-file upload for thesis files (basic)
- [x] File access restriction system (email approval workflow)