feat: config

This commit is contained in:
2025-08-24 14:23:51 +02:00
parent 0f3da902dc
commit 958979c62b
9 changed files with 159 additions and 86 deletions

View File

@@ -7,10 +7,10 @@ import (
"github.com/jordan-wright/email"
)
func (s Service) Send(m Mail) (err error) {
func (s Service) Send(m Mail, bcc ...string) (err error) {
e := email.NewEmail()
e.To = []string{m.TO}
e.Bcc = []string{"niklas@sunway.ch"}
e.Bcc = bcc
e.From = s.from
e.Subject = m.Subject
e.Text = []byte(m.Body)