Automated summary
Creates a draft email message in the signed-in user's mailbox using the Microsoft Outlook Mail API.
Strengths
- Enables composing an email in multiple steps before sending.
- Supports To, CC, and BCC recipients.
- Handles HTML formatting for the message body.
- Returns a message object with an ID for tracking.
Limitations
- Requires OAuth authentication with Mail.ReadWrite scope.
- Does not allow adding attachments directly (separate operation).
- Only works with Microsoft Outlook accounts.
When you need to prepare a complex email with multiple recipients or formatted content before sending.
For immediate sending or very simple emails, prefer the direct send operation.
Security analysis
SafeThe skill describes a standard API operation to create a draft message using Microsoft Outlook Mail API with a local sandbox URL. It does not instruct any destructive or data exfiltration actions, and the curl example uses a placeholder token and localhost, posing no security risk.
No concerns found
How this analysis is madeExamples
Create a draft email to Megan Bowen at megan@contoso.com with subject 'Quarterly Review Meeting' and a simple HTML body telling her to join the quarterly review.Draft an email with subject 'Project Update' to John (john@example.com) and CC Sarah (sarah@example.com), using normal importance and plain text body saying 'Here is the update.'Create Draft Message
Creates a new draft message in the signed-in user's mailbox. The draft can be updated and sent later using the send draft operation.
API Details
- API: Microsoft Outlook Mail API
- Method: POST
- Path:
/me/messages - Operation ID:
createMessage - Tag: Messages
- OpenAPI: microsoft-outlook-mail-api.yaml
Sandbox
Mock server URL: http://localhost:8080/rest/microsoft-outlook-mail-api/1.0.0/me/messages
Required Headers
Authorization: Bearer {access-token}Content-Type: application/json
OAuth Scopes
Mail.ReadWrite
Request Body
| Property | Type | Description |
|----------|------|-------------|
| subject | string | The subject of the message |
| body | object | The body of the message with contentType (text/html) and content |
| toRecipients | array | Array of recipient objects with emailAddress containing name and address |
| ccRecipients | array | Array of CC recipient objects |
| bccRecipients | array | Array of BCC recipient objects |
| importance | string | The importance of the message: low, normal, high |
Example Request
curl -X POST "http://localhost:8080/rest/microsoft-outlook-mail-api/1.0.0/me/messages" \
-H "Authorization: Bearer {access-token}" \
-H "Content-Type: application/json" \
-d '{
"subject": "Quarterly Review Meeting",
"body": {
"contentType": "html",
"content": "<html><body>Please join us for the quarterly review...</body></html>"
},
"toRecipients": [
{
"emailAddress": {
"name": "Megan Bowen",
"address": "megan@contoso.com"
}
}
],
"importance": "normal"
}'
Example Response
{
"id": "AAMkAGI1AAAGB1rUAAA=",
"subject": "Quarterly Review Meeting",
"bodyPreview": "Please join us for the quarterly review...",
"body": {"contentType": "html", "content": "<html><body>Please join us for the quarterly review...</body></html>"},
"importance": "normal",
"isRead": false,
"isDraft": true,
"hasAttachments": false,
"from": {"emailAddress": {"name": "Alex Wilber", "address": "alex@contoso.com"}},
"toRecipients": [{"emailAddress": {"name": "Megan Bowen", "address": "megan@contoso.com"}}],
"createdDateTime": "2024-01-15T10:30:00Z",
"receivedDateTime": "2024-01-15T10:30:00Z",
"parentFolderId": "AAMkAGI1AAAEJAAA="
}
Instructions
Use this operation to create a draft message that can be edited before sending. After creating the draft, you can add attachments using the create attachment operation and then send it using the send draft message operation. The response returns the created message with isDraft set to true and a status code of 201. This is the preferred workflow when you need to compose a message in multiple steps.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/create-draft-message-mma3jscv/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/create-draft-message-mma3jscv' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-draft-message-mma3jscv/download' --output '.skill-downloads/create-draft-message-mma3jscv/SKILL.md.part' && mv '.skill-downloads/create-draft-message-mma3jscv/SKILL.md.part' '.skill-downloads/create-draft-message-mma3jscv/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.
Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/create-draft-message-mma3jscv/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
PDF Reader
Productivity
Read and extract text from PDF files, including documents, reports, contracts, and spreadsheets. Works with local files, URLs, and WhatsApp attachments. Use whenever PDF content is needed, even if not explicitly requested.
Discord Messaging Workflows
Productivity
Use the message tool to send, edit, and moderate Discord messages with interactive components.
Interactive Verdict Preview
Productivity
Generate an interactive HTML preview of keep/drop verdicts for maintainer review, then process the pasted feedback JSON.