Send Dynamic Outlook Emails with Attachments
detail.loadingPreview
This workflow automates the process of creating an email draft in Microsoft Outlook, dynamically fetching and attaching an image from a URL, and then sending the complete email to a specified recipient.
About This Workflow
Streamline your email communication with this powerful n8n workflow for Microsoft Outlook. This automation allows you to programmatically create email drafts, enrich them with dynamically fetched attachments (like logos, reports, or images from web URLs), and then send them, all without manual intervention. Ideal for ensuring consistent branding, delivering personalized content, or automating routine communications, this workflow saves valuable time and reduces the risk of human error. Leverage n8n to connect your Outlook inbox with external data sources and elevate your email operations.
Key Features
- Automated Email Draft Creation: Instantly generate new email drafts in Outlook with predefined subjects and HTML body content.
- Dynamic Attachment Handling: Fetch files from any URL (e.g., company logos, dynamic reports, product images) and attach them directly to your email drafts.
- Seamless Draft Management: Create, modify, and send Outlook drafts programmatically.
- Customizable Recipients: Easily specify recipients for your automated emails.
- HTML Email Body Support: Craft rich, formatted email content using HTML for professional communication.
How To Use
- Manual Trigger: This node starts the workflow. Click "Execute Workflow" to run it manually, or replace it with a scheduled trigger for automation.
- Microsoft Outlook (Create Draft):
- Ensure your Microsoft Outlook OAuth2 API credentials are set up.
- Set 'Resource' to 'Draft'.
- Configure the 'Subject' and 'Body Content' for your email. You can use Markdown or HTML for the body.
- HTTP Request:
- Enter the 'URL' of the file you wish to attach (e.g.,
https://n8n.io/n8n-logo.png). - Under 'Options', set 'Response Format' to 'File' to ensure the output is treated as a file for the next node.
- Enter the 'URL' of the file you wish to attach (e.g.,
- Microsoft Outlook1 (Add Attachment):
- Select the same Microsoft Outlook OAuth2 API credentials.
- Set 'Resource' to 'Message Attachment'.
- For 'Message ID', reference the ID of the draft created in the first Outlook node using an expression:
={{$node["Microsoft Outlook"].json["id"]}}. - Under 'Additional Fields', specify the 'File Name' for the attachment (e.g.,
n8n.png). The actual file content will come from the 'HTTP Request' node's output.
- Microsoft Outlook2 (Send Draft):
- Use the same Microsoft Outlook OAuth2 API credentials.
- Set 'Resource' to 'Draft' and 'Operation' to 'Send'.
- For 'Message ID', again reference the ID of the draft:
={{$node["Microsoft Outlook"].json["id"]}}. - Under 'Additional Fields', enter the 'Recipients' (e.g.,
abc@example.com).
Apps Used
Workflow JSON
{
"id": "4ed49a33-f3d7-4e89-bd9f-7416e88cc178",
"name": "Send Dynamic Outlook Emails with Attachments",
"nodes": 8,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 4ed49a33-f3d7...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Related Workflows
Discover more workflows you might like
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.
Automate Getty Images Editorial Search & CMS Integration
This n8n workflow automates searching for editorial images on Getty Images, extracts key details and embed codes, and prepares them for seamless integration into your Content Management System (CMS), streamlining your content creation process.