Skip to content

Commit

Permalink
Release v4.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinejaussoin authored Apr 24, 2022
1 parent 065a192 commit e108a94
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
19 changes: 12 additions & 7 deletions backend/src/email/smtp-sender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@ export const smtpSender: EmailSender = async function (
subject: string,
body: string
): Promise<boolean> {
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;
}
};

0 comments on commit e108a94

Please sign in to comment.