Implement mailer and add welcome email for POP account
This commit is contained in:
parent
a6b926c9bf
commit
b582b10360
10 changed files with 170 additions and 3 deletions
|
|
@ -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())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue