-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
905: Send automatic mail for new applications and verifications #954
905: Send automatic mail for new applications and verifications #954
Conversation
88a029c
to
a6055b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everythings works and looks fine. Just some mail templating.
And local mail sending doesn't work with the check you added
You could add this small issue into your pr #960
backend/src/main/kotlin/app/ehrenamtskarte/backend/mail/Mailer.kt
Outdated
Show resolved
Hide resolved
backend/src/main/kotlin/app/ehrenamtskarte/backend/mail/Mailer.kt
Outdated
Show resolved
Hide resolved
val message = """ | ||
Guten Tag, | ||
|
||
Ein ein Antrag ist Verifiziert worden. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ein ein Antrag ist Verifiziert worden. | |
ein neuer Antrag wurde verifiziert. |
|
||
Falls Sie keine weiteren Benachrichtigungen zu neuen Anträgen erhalten möchten können Sie dies unter ${projectConfig.administrationBaseUrl}/user-settings deaktivieren. | ||
|
||
Dies ist eine automatisierte Nachricht. Antworten Sie nicht auf diese Email. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dies ist eine automatisierte Nachricht. Antworten Sie nicht auf diese Email. | |
Dies ist eine automatisierte Nachricht. Bitte antworten Sie nicht auf diese Email. |
backend/src/main/kotlin/app/ehrenamtskarte/backend/mail/Mailer.kt
Outdated
Show resolved
Hide resolved
backend/src/main/kotlin/app/ehrenamtskarte/backend/mail/Mailer.kt
Outdated
Show resolved
Hide resolved
administration/src/bp-modules/user-settings/NotificationSettings.tsx
Outdated
Show resolved
Hide resolved
backend/src/main/kotlin/app/ehrenamtskarte/backend/mail/Mailer.kt
Outdated
Show resolved
Hide resolved
backend/src/main/kotlin/app/ehrenamtskarte/backend/mail/Mailer.kt
Outdated
Show resolved
Hide resolved
3146a1a
to
2e0542d
Compare
I had to rename useQueryHandler as it is in fact not a hook (Kinda messed this up in the other pr) and therefore eslint would not allow to use it in other hooks. Renaming fixed this.
Additionally I moved the mails that are sent into the mailer (but I did not change the messages, so no need to review this :)). This way we have a much better overview of what default sentences and structure we use in the mails.
Due to the rename there were still quite a few files changed. Sorry for this 🙈