Email

Send Email

Request

  • from
    object
    • from.email
      string
    • from.name
      optional string
  • to
    array of objects
    • to.email
      string
    • to.name
      optional string
  • cc
    optional array of objects
    • cc.email
      string
    • cc.name
      optional string
  • bcc
    optional array of objects
    • bcc.email
      string
    • bcc.name
      optional string
  • replyTo
    optional array of objects
    • replyTo.email
      string
    • replyTo.name
      optional string
  • subject
    string
  • html
    optional string
  • text
    optional string

Response

Script does not return any data.

Usage

1. Install the module

2. Use this script

const data = await ctx.modules.email.send_email({
  // Request body
});