Set up SES mail delivery and harden the mailing list (#120)

* setup basic SES email sending

* basic honeypot form form submission
This commit is contained in:
2026-11-09 16:38:55 +01:00
committed by GitHub
parent 5b3241ae1f
commit cae4e35a70
23 changed files with 731 additions and 64 deletions
+2 -1
View File
@@ -33,7 +33,8 @@ defmodule Chesstrainer.MailingList.Notifier do
email =
new()
|> to(recipient)
|> from({Branding.name(), Branding.support_email()})
|> from({Branding.name(), Branding.mail_from()})
|> reply_to(Branding.support_email())
|> subject(subject)
|> text_body(body)
@@ -10,6 +10,8 @@ defmodule Chesstrainer.MailingList.Subscriber do
field :email, :string
field :source, Ecto.Enum, values: [:home, :registration], default: :home
field :confirmed_at, :utc_datetime
field :unsubscribed_at, :utc_datetime
field :confirmation_sent_at, :utc_datetime
belongs_to :user, User
timestamps(type: :utc_datetime)