sendEmail
fun sendEmail(from: Email, to: List<Email>, cc: List<Email> = emptyList(), bcc: List<Email> = emptyList(), subject: String, html: String)
Sends an email via the Resend API.
Parameters
from
the sender email address.
to
the list of recipient email addresses.
cc
the list of CC recipient email addresses. Defaults to empty.
bcc
the list of BCC recipient email addresses. Defaults to empty.
subject
the email subject line.
html
the HTML body content of the email.
Throws
if the Resend API call fails.