MailSend

Summary

  • Sends a new email to one or more recipients.

Graph Endpoint

  • POST /me/sendMail

Parameters

Required

  • to: string[] — Recipient email addresses.

Optional

  • cc: string[], bcc: string[]

  • subject: string, body: string

  • bodyContentType: 'Text'|'HTML' — default Text

  • saveToSentItems: boolean — default true

  • attachmentIds: number[] — Up to 10 repository attachment IDs; backend attaches the files automatically before sending.

Usage (app.businessFunction)

Minimal

With options

Response

Notes

  • When attachmentIds are provided, the system creates a draft, uploads the files, and then sends the draft — all in a single call.

  • The IDs must reference attachments that still have accessible file data (either in DB or in external storage). If a blob was removed, update or re-upload the attachment.

Last updated

Was this helpful?