Outlook Draft Email

Outlook Draft Email

Create draft emails using your connected Microsoft Outlook account

Node Type

Action

Category

Microsoft Integration

Icon

Mail

Overview

The Outlook Draft Email node allows you to create draft emails in your Microsoft Outlook account programmatically. This powerful automation tool integrates with Microsoft Graph API to provide intelligent email drafting capabilities for your workflows, supporting HTML content and multiple recipients.

Key Features

  • Microsoft Graph Integration: Seamlessly creates draft emails using Microsoft Graph API
  • HTML Support: Create rich, formatted emails with HTML content
  • Multiple Recipients: Support for To, CC, and BCC recipients
  • Email Validation: Automatic validation of email addresses
  • Draft Management: Returns draft ID for future reference and editing
  • OAuth Security: Secure authentication using Microsoft OAuth

Prerequisites

Microsoft Integration

Must be connected to access Microsoft Graph API

Microsoft account connected
Microsoft Graph API access granted
Mail send scope permissions

Required Scopes

API scopes needed for creating draft emails

https://graph.microsoft.com/Mail.Send scope
OAuth access token for Microsoft Graph API
Valid Microsoft account with Outlook access

Email Configuration

Understanding of email requirements and validation

Valid recipient email addresses
Proper email format validation
HTML content support for rich formatting

Node Configuration

Required Fields

To

Type:text
Required:Yes
Value Type:string

Recipient email address(es). Use comma-separated values for multiple recipients (e.g., '[email protected], [email protected]').

Subject

Type:text
Required:Yes
Value Type:string

The subject line of the email. Keep it clear and descriptive for better email deliverability.

Body (HTML allowed)

Type:textarea
Required:Yes
Value Type:string

The body content of the email. Supports HTML formatting for rich text emails. Use HTML tags for formatting, links, and styling.

Optional Fields

Cc

Type:text
Required:No
Value Type:string

Optional CC recipients. Use comma-separated values for multiple CC recipients (e.g., '[email protected], [email protected]').

Bcc

Type:text
Required:No
Value Type:string

Optional BCC recipients. Use comma-separated values for multiple BCC recipients (e.g., '[email protected], [email protected]').

Examples & Use Cases

Simple Text Email

Create a basic text email draft

{
  "to": "[email protected]",
  "subject": "Meeting Reminder",
  "body": "Hi there,

This is a reminder about our meeting tomorrow at 2 PM.

Best regards,
Your Team"
}

Creates a simple text email draft with basic formatting.

Rich HTML Email

Create a formatted HTML email with styling

{
  "to": "[email protected]",
  "subject": "Welcome to Our Service!",
  "body": "<h2>Welcome!</h2><p>Thank you for joining us. Here's what you can do next:</p><ul><li>Complete your profile</li><li>Explore our features</li><li>Join our community</li></ul><p><a href='https://example.com/dashboard'>Get Started</a></p>",
  "cc": "[email protected]"
}

Creates a rich HTML email with formatting, lists, and links.

AI-Generated Email Campaign

Workflow combining AI with email drafting

Workflow Structure

📊 Data Source → 🤖 LLM Generate → 📧 Outlook Draft → 👤 Human Review → 📤 Send Email
{
  "to": "{{customerEmail}}",
  "subject": "{{aiGeneratedSubject}}",
  "body": "{{aiGeneratedEmailBody}}",
  "cc": "{{managerEmail}}"
}

Generate personalized emails with AI, create drafts for review, then send to customers.

Bulk Email Notifications

Send notifications to multiple recipients

Workflow Structure

📋 Contact List → 🔄 For Each → 📧 Outlook Draft → 📤 Send Email
{
  "to": "{{recipientEmail}}",
  "subject": "Important Update: {{updateTitle}}",
  "body": "<h3>Update Notification</h3><p>Dear {{recipientName}},</p><p>{{updateContent}}</p><p>Best regards,<br>The Team</p>",
  "bcc": "[email protected]"
}

Process a list of contacts and create personalized draft emails for each recipient.

Best Practices

Do's

  • Use clear, descriptive subject lines
  • Validate email addresses before sending
  • Use HTML formatting for professional emails
  • Test email content before going live
  • Check the Success field before proceeding
  • Use template variables for dynamic content
  • Include proper email signatures

Don'ts

  • Don't use spammy subject lines
  • Avoid sending to invalid email addresses
  • Don't forget to handle the Success field
  • Avoid hardcoding email content when possible
  • Don't send sensitive information without encryption
  • Avoid excessive HTML that might trigger spam filters
  • Don't ignore email deliverability best practices
💡
Pro Tip: Use HTML formatting strategically - include proper email structure with headers, body, and footers. Test your HTML emails in different email clients. For bulk operations, use the For Each node to process recipients individually and avoid rate limits.

Troubleshooting

Common Issues

Invalid Email Addresses

Symptoms: Node fails with email validation errors

Solution: Ensure all email addresses are properly formatted. Check for typos, missing @ symbols, or invalid domains. Use comma-separated values for multiple recipients.

OAuth Authentication Errors

Symptoms: Node fails with authentication or permission errors

Solution: Verify the Microsoft account is connected and has granted the Mail.Send scope. Reconnect the Microsoft account if needed and ensure proper OAuth permissions.

HTML Rendering Issues

Symptoms: HTML content doesn't display properly in the draft

Solution: Use proper HTML structure with DOCTYPE, html, head, and body tags. Test your HTML in different email clients. Avoid complex CSS that might not be supported.

Rate Limiting

Symptoms: Node fails with rate limit exceeded errors

Solution: Microsoft Graph API has rate limits. Reduce the frequency of draft creation and implement delays between operations. Consider batching operations when possible.

Draft Not Found

Symptoms: Draft ID is returned but draft cannot be found in Outlook

Solution: Ensure you're checking the correct Outlook account and folder. Drafts might take a moment to appear. Verify the user has proper permissions to create drafts.

Related Resources