Implement mailer and add welcome email for POP account

This commit is contained in:
William Bouzourène 2026-05-05 18:58:40 +02:00
parent a6b926c9bf
commit b582b10360
Signed by: bouzoure
GPG key ID: 423440D735B56BE2
10 changed files with 170 additions and 3 deletions

View file

@ -101,7 +101,10 @@ func SyncUsers() error {
account.UpdateNeeded = false
if !account.AccountCreated.Valid {
// TODO: send email
err := SendWelcomeMail(account.Person)
if err != nil {
log.Error(err)
}
account.AccountCreated.Scan(time.Now())
}