ezidam/crates/email
2023-07-14 16:38:08 +02:00
..
src email: pass template_dir in config 2023-07-14 16:38:08 +02:00
templates admin/users: force password reset (now lasts for 24 hours), send email, show expiration 2023-05-03 23:46:40 +02:00
Cargo.toml forgot password: send emails 2023-04-22 01:27:24 +02:00
readme.md forgot password: send emails 2023-04-22 01:27:24 +02:00

email

create and send emails from templates

template

  • mjml to create emails
  • tera to render emails with parameters

send

  • lettre to send the emails with smtp

rocket config

  • from: Sender of emails, usually name and email address
  • transport: Security method to send the mails. unencrypted or tls or starttls
  • host: Where to send smtp traffic
  • port: optional: Used when transport is unencrypted
  • username and password: optional: Used when transport is tls or starttls

Rocket.toml

[default.email]
from = "ezidam <ezidam@mail.local>"
transport = "unencrypted"
host = "localhost"
port = 1025

env

ROCKET_EMAIL='{from="ezidam <ezidam@mail.local>",transport="unencrypted",host="localhost",port=1025}'