View Source Resend.Emails (resend v0.4.4)

Send emails via Resend.

Summary

Functions

Gets an email given an ID.

Sends an email given a map of parameters.

Functions

Link to this function

get(client \\ Resend.client(), email_id)

View Source

Gets an email given an ID.

Link to this function

send(client \\ Resend.client(), opts)

View Source

Sends an email given a map of parameters.

Parameter options:

  • :to - Recipient email address (required)
  • :from - Sender email address (required)
  • :cc - Additional email addresses to copy, may be a single address or a list of addresses
  • :bcc - Additional email addresses to blind-copy, may be a single address or a list of addresses
  • :reply_to - Specify the email that recipients will reply to
  • :subject - Subject line of the email
  • :headers - Map of headers to add to the email with corresponding string values
  • :html - The HTML-formatted body of the email
  • :text - The text-formatted body of the email
  • :attachments - List of attachments to include in the email

You must include one or both of the :html and :text options.