1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-01 08:31:59 +00:00
immich/server
Nicolò 9bce3417e9
feat(server): email notifications (#8447)
* feat(server): add `react-mail` as mail template engine and `nodemailer`

* feat(server): add `smtp` related configs to `SystemConfig`

* feat(web): add page for SMTP settings

* feat(server): add `react-email.adapter`

This adapter render the React-Email into HTML and plain/text email.
The output is set as the body of the email.

* feat(server): add `MailRepository` and `MailService`

Allow to use the NestJS-modules-mailer module to send SMTP emails.
This is the base transport for the `NotificationRepository`

* feat(server): register the job dispatcher and Job for async email

This allows to queue email sending jobs for the `EmailService`.

* feat(server): add `NotificationRepository` and `NotificationService`

This act as a middleware to properly route the notification to the right transport.
As POC I've only implemented a simple SMTP transport.

* feat(server): add `welcome` email template

* feat(server): add the first notification on `createUser` in `UserService`

This trigger an event for the `NotificationRepository` that once processes
by using the global config and per-user config will carry the payload to the right notification transport.

* chore: clean up

* chore: clean up web

* fix: type errors"

* fix package lock

* fix mail sending, option to ignore certs

* chore: open api

* chore: clean up

* remove unused import

* feat: email feature flag

* chore: remove unused interface

* small styling

---------

Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2024-05-02 15:43:18 +01:00
..
bin chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
resources feat: postgres reverse geocoding (#5301) 2023-11-25 18:53:30 +00:00
src feat(server): email notifications (#8447) 2024-05-02 15:43:18 +01:00
test feat(server): email notifications (#8447) 2024-05-02 15:43:18 +01:00
.eslintrc.js chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00
.gitignore feat(web): re-add open graph tags for public share links (#5635) 2023-12-11 13:37:47 -06:00
.nvmrc chore: fvm and node dependency updates and pinning (#9203) 2024-05-01 14:05:18 +01:00
.prettierignore refactor: open api (#6334) 2024-01-12 07:36:27 -05:00
.prettierrc fix(server): lint import order (#3974) 2023-09-04 21:45:59 +02:00
Dockerfile chore(deps): update base-image to v20240430 (major) (#9179) 2024-04-30 22:04:28 -04:00
nest-cli.json chore(server): enable swagger to take class validator rules into account (#9022) 2024-04-22 18:13:44 -04:00
package-lock.json feat(server): email notifications (#8447) 2024-05-02 15:43:18 +01:00
package.json feat(server): email notifications (#8447) 2024-05-02 15:43:18 +01:00
README.md docs: add some details for getting started as a developer (#8468) 2024-04-02 11:56:33 -05:00
start-microservices.sh fix: shell scripts (#7189) 2024-02-18 20:57:24 -06:00
start-server.sh fix: shell scripts (#7189) 2024-02-18 20:57:24 -06:00
start.sh fix(server): re-add mimalloc (#7511) 2024-02-28 18:23:48 -05:00
tsconfig.build.json fix: exclude e2e format (#3250) 2023-07-13 21:41:16 -05:00
tsconfig.json feat(server): email notifications (#8447) 2024-05-02 15:43:18 +01:00
vitest.config.mjs chore: migrate to vitest (#7156) 2024-04-16 10:44:45 -04:00

Immich server project

This project uses the NestJS web framework. Please refer to the NestJS docs for information on getting started as a contributor to this project.