feat: config
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user