action microsoft_send_mail { label: "Send mail" description: "Send an email as the signed-in user." provider: microsoft method: POST path: "/v1.0/me/sendMail" scopes: ["Mail.Send"] input: @json { { "type": "object", "required": ["message"], "additionalProperties": false, "properties": { "message": { "type": "object", "description": "The message to send.", "required": ["subject", "body", "toRecipients"], "properties": { "subject": { "type": "string" }, "body": { "type": "object", "required": ["contentType", "content"], "properties": { "contentType": { "type": "string", "enum": ["text", "html"] }, "content": { "type": "string" } } }, "toRecipients": { "type": "array", "items": { "type": "object", "properties": { "emailAddress": { "type": "object", "properties": { "address": { "type": "string" }, "name": { "type": "string" } } } } } }, "ccRecipients": { "type": "array", "items": { "type": "object" } }, "bccRecipients": { "type": "array", "items": { "type": "object" } } } }, "saveToSentItems": { "type": "boolean", "description": "Save the message to Sent Items (default true)." } } } } }