fix: don't use cc and bcc for resend

This commit is contained in:
Maas Lalani 2023-08-01 08:32:28 -04:00
parent 7397bcb80e
commit 99f44cc882
No known key found for this signature in database
GPG key ID: 5A6ED5CBF1A0A000

View file

@ -126,7 +126,7 @@ func sendSMTPEmail(to, cc, bcc []string, from, subject, body string, attachments
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)
html := bytes.NewBufferString("")
@ -150,8 +150,6 @@ func sendResendEmail(to, cc, bcc []string, from, subject, body string, attachmen
request := &resend.SendEmailRequest{
From: from,
To: to,
Cc: cc,
Bcc: bcc,
Subject: subject,
Html: html.String(),
Text: body,