Swiftybase
Function StackMail

New Email Request

Create and Configure a New Email Request

Configuration:

  • From: (Required) – The sender's email address.
  • To: (Required) – The recipient's email address.
  • Subject: (Optional) – The subject line of the email.
  • BCC: (Optional) – BCC recipients.
  • CC: (Optional) – CC recipients.
  • Reply To: (Optional) – The email address for replies.
  • Template Name: (Optional) – The name of the email template to use (only used for provider that support sending email using template name instead of raw html or text).
  • HTML Content: – The HTML version of the email body.
  • Text Content: – The plain text version of the email body.
  • Tags: (Optional) – Custom tags for categorization and tracking, can be single or list of tags.
  • Attachment: (Optional) – Email attachments, can be single or a list of attachment.
  • Headers: (Optional) – Custom email headers.
  • Scheduled At: (Optional) – The date and time to schedule the email.
  • Mail Provider: (Required) – Specifies the registered email provider to use.

Outputs:

Returns a SendEmailRequest instance, which can be provided to the Send Email or Send Batch Email function to send the email.

On this page