Skip to content

Commit

Permalink
feat: send emails and maildev setup
Browse files Browse the repository at this point in the history
  • Loading branch information
EstebanBorai committed Dec 17, 2023
1 parent b7bede2 commit 99ba46a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,14 @@ database in a Docker container.
Use [MJML Editor][mjml] and then render into HTML. Make sure variables use
Handlebars syntax (e.g. `{{name}}`).

For local testing you can use something like:

```bash
curl -s http://localhost:1080/email | grep -o -E "This is your verification code.{0,7}" | tail -1 | sed 's/^.*://' | awk '{$1=$1;print}
```
To get the very last email's verification code.

> **Warning** Note that changes on email content will break this script

[mjml]: https://mjml.io/try-it-live/99k8regCo_
2 changes: 1 addition & 1 deletion crates/core/src/mail/templates/verification_code.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
</tr>
<tr>
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
<div style="font-family:helvetica;font-size:20px;line-height:1;text-align:left;color:#F45E43;">This is your verification code {{code}} please don't share it with anyone!</div>
<div style="font-family:helvetica;font-size:20px;line-height:1;text-align:left;color:#F45E43;">This is your verification code: {{code}} please don't share it with anyone!</div>
</td>
</tr>
</tbody>
Expand Down

0 comments on commit 99ba46a

Please sign in to comment.