refactor: update mailer service to stop using postmark (#38)

* refactor: update mailer service to stop using postmark

* chore: remove postmark as a dep and move out postmark code

* chore: remove postmark variables from .env.example

* chore: add formal errors for mailer initialization errors

* chore: add and update jsdoc comments in mailer service methods
This commit is contained in:
Andrew Bastin
2023-03-15 14:02:55 +05:30
committed by GitHub
parent ae77c60c53
commit e978541bf1
10 changed files with 2381 additions and 6533 deletions

View File

@@ -1,9 +1,9 @@
# Prisma Config
DATABASE_URL=postgresql://postgres:testpass@dev-db:5432/hoppscotch
# Postmark Config
POSTMARK_SERVER_TOKEN=************************************************"
POSTMARK_SENDER_EMAIL=************************************************"
# Mailer config
MAILER_SMTP_URL="smtps://user@domain.com:pass@smtp.domain.com"
MAILER_ADDRESS_FROM='"From Name Here" <from@example.com>'
# Auth Tokens Config
JWT_SECRET='add some secret here'