ezidam/crates/email/readme.md

795 B

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}'