Add html email

This commit is contained in:
Benjamin Sigonneau
2022-05-13 09:29:43 +02:00
parent d3a4d555a4
commit 446fedc4a6
2 changed files with 55 additions and 7 deletions

View File

@@ -20,13 +20,20 @@
* setup a proper fake smtp server
- a few names: Mailcatcher, Maildev, Mailhog
- Mailhog: free software, easy to install (go, docker)
- docker run -d -p 1025:1025 -p 8025:8025 mailhog/mailhog
+ wget https://github.com/mailhog/MailHog/releases/download/v1.0.1/MailHog_linux_amd64
+ docker run -d -p 1025:1025 -p 8025:8025 mailhog/mailhog
## Other problems with sending mail
* in dev/testing env, we don't really want to send to the actual recipients
- but we still want to craft the email for them
*
## Other benefits
* can test email displays as wanted
* can check attachments (receipt, invoice...)
* API -> can be used in unit tests / CI
* Test deliverability issues with Jim: MailHog's Chaos Monkey
## Links