email-sender

Send emails with attachments and HTML templates via SMTP using Nodemailer.

84|15|Updated Dec 31, 2025
One-click install
npx skills add https://github.com/AIDotNet/MoYuCode --skill email-sender-aidotnet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: email-sender
Source: https://github.com/AIDotNet/MoYuCode/tree/main/skills/tools/email-sender
Command: npx skills add https://github.com/AIDotNet/MoYuCode --skill email-sender-aidotnet

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of sending emails, including those with attachments and HTML content, directly from your command line or scripts, eliminating the need for manual email composition and sending.

Core Features & Use Cases

  • SMTP Sending: Utilizes Nodemailer via a Python script to send emails through any SMTP server.
  • HTML & Plain Text: Supports sending emails with rich HTML formatting or plain text bodies.
  • Attachments: Allows for the inclusion of one or more file attachments.
  • Multiple Recipients: Can send emails to multiple recipients, including CC and BCC.
  • Use Case: Automatically send daily sales reports as PDF attachments to your team via email.

Quick Start

Send an email with the subject "Daily Update" and the body "Please find the report attached." with the file "report.pdf" attached to "[email protected]".

Frequently Asked Questions about email-sender

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

FAQPage Schema
How do I send emails with attachments via SMTP from a script?

You can send emails with attachments via SMTP by executing a Python script that leverages Nodemailer. This approach supports automated dispatch of files like PDF reports directly to recipients.

Can I include CC and BCC recipients when sending HTML emails through SMTP?

Yes, sending HTML emails through SMTP supports multiple recipients, including CC and BCC fields. You can programmatically define these recipient lists within your script for bulk distribution.

Do I need to configure environment variables for SMTP server setup?

Yes, SMTP server configuration requires setting environment variables. You must define your SMTP host, port, and authentication credentials in the environment before executing the email dispatch script.

What is the best way to automate daily report distribution via email?

Automating daily report distribution via email is best handled by programmatically sending files as attachments using SMTP. This eliminates manual composition by dispatching reports automatically through a script.

Does this SMTP email automation approach support plain text bodies as well as HTML?

Yes, SMTP email automation supports both rich HTML formatting and plain text bodies. You can specify the content type required for your automated notifications or system alerts within the script.

Why use Nodemailer within a Python script for sending notifications?

Using Nodemailer within a Python script for sending notifications enables programmatic email dispatch through any standard SMTP server. This combination allows automated system alerts and report distribution without manual email clients.