diff --git a/backend/src/emails/README.md b/backend/src/emails/README.md deleted file mode 100644 index 9ab1d1124..000000000 --- a/backend/src/emails/README.md +++ /dev/null @@ -1,50 +0,0 @@ -# Using `forwardemail`–`email-templates` With `pug` Package - -You'll find the GitHub repository of the `email-templates` package and the `pug` package here: - -- [email-templates](https://github.com/forwardemail/email-templates) -- [pug](https://www.npmjs.com/package/pug) - -## `pug` Documentation - -The full `pug` documentation you'll find here: - -- [pugjs.org](https://pugjs.org/) - -### Caching Possibility - -In case we are sending many emails in the future there is the possibility to cache the `pug` templates: - -- [cache-pug-templates](https://github.com/ladjs/cache-pug-templates) - -## Testing - -To test your send emails you have different possibilities: - -### In General - -To send emails to yourself while developing set in `.env` the value `EMAIL_TEST_MODUS=true` and `EMAIL_TEST_RECEIVER` to your preferred email address. - -### Unit Or Integration Tests - -To change the behavior to show previews etc. you have the following options to be set in `sendEmailTranslated.ts` on creating the email object: - -```js - const email = new Email({ - … - // send emails in development/test env: - send: true, - … - // to open send emails in the browser - preview: true, - // or - // to open send emails in a specific the browser - preview: { - open: { - app: 'firefox', - wait: false, - }, - }, - … - }) -``` diff --git a/backend/src/emails/__snapshots__/sendEmailVariants.test.ts.snap b/backend/src/emails/__snapshots__/sendEmailVariants.test.ts.snap deleted file mode 100644 index aec3510fe..000000000 --- a/backend/src/emails/__snapshots__/sendEmailVariants.test.ts.snap +++ /dev/null @@ -1,1736 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`sendEmailVariants sendAccountActivationEmail result has the correct html as snapshot 1`] = ` -" - -
- - - - - - -Hello Peter Lustig,
-Your email address has just been registered with Gradido.
-Kind regards,
your Gradido team
-
Hello Peter Lustig,
-Your email address has just been used again to register an account with Gradido.
However, an account already exists for your email address.
-
Kind regards,
your Gradido team
-
Hello Peter Lustig,
-You have received a message from Bibi Bloxberg regarding your common good contribution “My contribution.”.
-„My message.“
-To reply to the message, go to the “Creation” menu in your Gradido account and click on the “My contributions” tab.
-Kind regards,
your Gradido team
-
Hello Peter Lustig,
-your common good contribution 'My contribution.' has just been changed by Bibi Bloxberg and now reads as 'This is a better contribution memo.'
-Kind regards,
your Gradido team
-
Hello Peter Lustig,
-Your common good contribution “My contribution.” has just been approved by Bibi Bloxberg. Your Gradido account has been credited with 23.54 GDD.
-Kind regards,
your Gradido team
-
Hello Peter Lustig,
-Your common good contribution “My contribution.” was deleted by Bibi Bloxberg.
-Kind regards,
your Gradido team
-
Hello Peter Lustig,
-Your common good contribution “My contribution.” was rejected by Bibi Bloxberg.
-Kind regards,
your Gradido team
-
Hello Peter Lustig,
-You, or someone else, requested a password reset for this account.
-Kind regards,
your Gradido team
-
Hello Peter Lustig,
-Bibi Bloxberg (bibi@bloxberg.de) has just redeemed your link.
-Kind regards,
your Gradido team
-
Hello Peter Lustig,
-You have just received 37.40 GDD from Bibi Bloxberg (bibi@bloxberg.de). -
-Kind regards,
your Gradido team
-