Skip to content

Commit

Permalink
fix: don't use cc and bcc for resend
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Aug 1, 2023
1 parent 7397bcb commit 99f44cc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions email.go
Original file line number Diff line number Diff line change
Expand Up @@ -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("")
Expand All @@ -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,
Expand Down

0 comments on commit 99f44cc

Please sign in to comment.