mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-02-06 19:49:23 -06:00
16 lines
308 B
Go
16 lines
308 B
Go
package mail
|
|
|
|
import "codeberg.org/shroff/phylum/server/internal/core"
|
|
|
|
func SendWelcomeEmail(u core.User) error {
|
|
email := emails["welcome"]
|
|
params := map[string]string{
|
|
"name": u.Name,
|
|
"instance": Cfg.Instance,
|
|
}
|
|
if u.Name == "" {
|
|
params["name"] = "there"
|
|
}
|
|
return send(email, u, params)
|
|
}
|