package auth import ( "codeberg.org/pronounscc/pronouns.cc/backend/log" "github.com/jordan-wright/email" "time" ) func (s *Server) SendEmail(to, title, template string, data map[string]any) { e := email.NewEmail() e.From = s.emailAddress e.To = []string{to} err := s.emailPool.Send(e, 10*time.Second) if err != nil { log.Errorf("sending email: %v", err) } }