mirror of
https://github.com/ivabus/pop
synced 2025-06-07 23:50:27 +03:00
fix: don't use cc and bcc for resend
This commit is contained in:
parent
7397bcb80e
commit
99f44cc882
1 changed files with 1 additions and 3 deletions
4
email.go
4
email.go
|
@ -126,7 +126,7 @@ func sendSMTPEmail(to, cc, bcc []string, from, subject, body string, attachments
|
||||||
return email.Send(smtpClient)
|
return email.Send(smtpClient)
|
||||||
}
|
}
|
||||||
|
|
||||||
func sendResendEmail(to, cc, bcc []string, from, subject, body string, attachments []string) error {
|
func sendResendEmail(to, _, _ []string, from, subject, body string, attachments []string) error {
|
||||||
client := resend.NewClient(resendAPIKey)
|
client := resend.NewClient(resendAPIKey)
|
||||||
|
|
||||||
html := bytes.NewBufferString("")
|
html := bytes.NewBufferString("")
|
||||||
|
@ -150,8 +150,6 @@ func sendResendEmail(to, cc, bcc []string, from, subject, body string, attachmen
|
||||||
request := &resend.SendEmailRequest{
|
request := &resend.SendEmailRequest{
|
||||||
From: from,
|
From: from,
|
||||||
To: to,
|
To: to,
|
||||||
Cc: cc,
|
|
||||||
Bcc: bcc,
|
|
||||||
Subject: subject,
|
Subject: subject,
|
||||||
Html: html.String(),
|
Html: html.String(),
|
||||||
Text: body,
|
Text: body,
|
||||||
|
|
Loading…
Reference in a new issue