PADEmail & Graph APIoutlookemailhtmltemplate
Send Email with HTML Template
Sends a fully-formatted HTML email through Outlook Desktop using the Send Email action. Supports dynamic variable substitution into an HTML template, optional file attachments, CC/BCC recipients, and reply-to address override — all from a reusable subflow.
Members OnlySign in or create a free account to view and copy this pattern.
Usage Notes
- The HTML body uses ${variable} placeholders — replace these before calling the send action.
- For attachments, set varAttachmentPath to a semicolon-separated list of full file paths.
- If Outlook is not installed, use the SMTP action (Outlook.SendEmailMessage vs Email.SendEmailMessage).
- For high-volume sending, throttle with a DateTime.Wait between sends to avoid Outlook rate limits.
- Pair with Global Error Handler to ensure a failure notification is sent even if the main flow crashes.
Requirements
- Power Automate Desktop 2.30+
- Outlook Desktop installed and configured on the machine
- Variables: varToAddress (Text), varSubject (Text), varHtmlBody (Text), varAttachmentPath (Text, optional)