From e108a941d720291d37225762d38ece0e9e8994a1 Mon Sep 17 00:00:00 2001 From: Antoine Jaussoin Date: Sun, 24 Apr 2022 10:27:40 +0100 Subject: [PATCH] Release v4.15.0 --- README.md | 6 +++--- backend/src/email/smtp-sender.ts | 19 ++++++++++++------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 1d1c55505..b255474d8 100644 --- a/README.md +++ b/README.md @@ -85,13 +85,13 @@ This will run a demo version, which you can turn into a fully licenced version b ## Versions History -### Version 4.15.0 (not released) +### Version 4.15.0 - **Self-Hosting**: Improve Admin dashboard for Self-Hosted, allowing the admin to add and delete users -- Fix GDPR account deletion, which did not work when the user had written messages (chat) +- **Self-Hosting**: Add an option to allow self-signed certificates for the SMTP server, for sending emails +- Fix GDPR account deletion, which did not work when the user had any chat messages - Upgrade React typings to v18 - Upgrade all frontend dependencies -- **Self-Hosting**: Add an option to allow self-signed certificates for the SMTP server, for sending emails ### Version 4.14.1 (hotfix) diff --git a/backend/src/email/smtp-sender.ts b/backend/src/email/smtp-sender.ts index 3c348056a..8af123bb5 100644 --- a/backend/src/email/smtp-sender.ts +++ b/backend/src/email/smtp-sender.ts @@ -22,11 +22,16 @@ export const smtpSender: EmailSender = async function ( subject: string, body: string ): Promise { - const response = await transporter.sendMail({ - from: config.MAIL_SENDER, - to, - subject, - html: body, - }); - return !!response.accepted; + try { + const response = await transporter.sendMail({ + from: config.MAIL_SENDER, + to, + subject, + html: body, + }); + return !!response.accepted; + } catch (e) { + console.error('SMTP error', e); + return false; + } };