squad-email-headless

Send emails headlessly from an Outlook account via the Microsoft Graph API.

41|8|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/tamirdresher/squad-skills --skill squad-email-headless
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: squad-email-headless
Source: https://github.com/tamirdresher/squad-skills/tree/main/plugins/squad-email-headless
Command: npx skills add https://github.com/tamirdresher/squad-skills --skill squad-email-headless

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill enables sending emails from a specific Outlook account ([email protected]) without needing a browser or manual interaction, making automated email sending possible from any machine.

Core Features & Use Cases

  • Headless Email Sending: Send emails programmatically using Microsoft Graph API.
  • OAuth2 Authentication: Securely authenticates using a device code flow and stores refresh tokens for persistent access.
  • Cross-Machine Compatibility: Works on Windows, macOS, and Linux with PowerShell 7+.
  • Use Case: Automate sending daily reports, notifications, or customer service responses directly from your scripts or applications.

Quick Start

Use the squad-email-headless skill to send an email to '[email protected]' with the subject 'Hello from Squad' and the body 'This is a test email'.

Frequently Asked Questions about squad-email-headless

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send emails headlessly from an Outlook account using PowerShell?

Microsoft Graph API enables headless email transmission from a designated Outlook account using PowerShell, supporting text, HTML, multiple recipients, CC, BCC, and importance levels. A one-time device code authentication generates and stores tokens in Windows Credential Manager or GitHub Secrets.

What is the best way to automate sending daily reports via Microsoft Graph API?

Automating daily reports via Microsoft Graph API is achieved by sending emails programmatically from a designated Outlook account. This Skill uses OAuth2 device code flow to authenticate and store refresh tokens for persistent access across Windows, macOS, and Linux with PowerShell 7+.

Does headless email sending with Microsoft Graph API require manual browser login?

Headless email sending with Microsoft Graph API does not require manual browser login. It uses a one-time device code flow for OAuth2 authentication, securely storing refresh tokens in Windows Credential Manager or as a GitHub Secret for persistent automated access.

Can I use PowerShell to send automated emails with HTML content and BCC recipients?

Yes, you can send automated emails with HTML content and BCC recipients using PowerShell via this Skill. It interfaces with the Microsoft Graph API to support text and HTML formats, multiple recipients, CC, BCC, and configurable importance levels.

What limitations exist when sending emails headlessly with PowerShell 7+?

Limitations of sending emails headlessly with PowerShell 7+ include being restricted to a designated Outlook account and requiring Microsoft Graph API access. A one-time device code authentication is mandatory, and token persistence relies on Windows Credential Manager or GitHub Secrets.