Send an email through a Gmail account

Input

PropertyTypeRequiredDescription
receiverSHORT_TEXTYesEmail address of the receiver, or multiple addresses separated by commas
subjectSHORT_TEXTYes-
body_textSHORT_TEXTYesText version of the body for the email you want to send
reply_toARRAYNoEmail address to set as the “Reply-To” header
body_htmlSHORT_TEXTNoHTML version of the body for the email you want to send
attachmentFILENoFile to attach to the email you want to send

Sample Output

{
  "status": 200,
  "headers": {
    "content-type": "application/json; charset=UTF-8",
    "vary": "Origin, X-Origin, Referer",
    "date": "Mon, 17 Jul 2023 08:34:57 GMT",
    "server": "ESF",
    "cache-control": "private",
    "x-xss-protection": "0",
    "x-frame-options": "SAMEORIGIN",
    "x-content-type-options": "nosniff",
    "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
    "connection": "close",
    "transfer-encoding": "chunked"
  },
  "body": {
    "id": "17862bf0653c7e4f",
    "threadId": "17862bf0653c7e4f",
    "labelIds": [
      "SENT"
    ]
  }
}