Email Automation Pack
★Trustedv1.0.0MIT✔Verified88by AgentNode · published 22 days ago · toolpack
Send, receive, and automate email workflows with SMTP/IMAP.
Full email automation: send emails via SMTP, read inbox via IMAP, apply filters, auto-respond, and manage email workflows. Supports Gmail, Outlook, and custom SMTP.
Quick Start
agentnode install email-automation-packUsage
From packagefrom email_automation_pack.tool import run
result = run(
action="automate_email",
operation="send",
to=["jamie.liu@acmecorp.com"],
subject="Q1 2025 Sales Report — Final",
body_html="""<h2>Q1 Sales Report</h2>
<p>Hi Jamie,</p>
<p>Attached is the final Q1 sales report. Key highlights:</p>
<ul>
<li>Total revenue: <strong>$2.4M</strong> (+18% YoY)</li>
<li>New accounts: <strong>47</strong></li>
<li>Top region: Northeast (38% of revenue)</li>
</ul>
<p>Let me know if you have questions.</p>""",
attachments=["/data/reports/q1_sales_2025.pdf"],
from_name="Sales Analytics Bot"
)
print(f"Email sent: {result['message_id']}")
print(f"Status: {result['status']}")Environment Variables
SMTP_HOSTSMTP server hostname (e.g., smtp.gmail.com)
SMTP_PORTSMTP server port (e.g., 587 for TLS)
SMTP_USERSMTP authentication username
SMTP_PASSWORDSMTP authentication password or app-specific password
IMAP_HOSTIMAP server hostname for reading emails (e.g., imap.gmail.com)
Verification
Package installs and imports correctly. runtime checks passed.
This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.
Last verified 18d ago· Runner v2.0.0
Use this when you need to...
- ›Send transactional order confirmation emails via SMTP
- ›Monitor an inbox for invoices and extract attachment data
- ›Auto-respond to support emails matching specific keywords
- ›Forward filtered emails to a Slack webhook for team visibility
- ›Schedule and send weekly digest newsletters to subscriber lists
README
Email Automation Pack
Send, receive, and automate email workflows with SMTP/IMAP. Full email automation: send emails via SMTP, read inbox via IMAP, apply filters, and auto-respond.
Quick Start
agentnode install email-automation-pack
from email_automation_pack.tool import run
result = run(
action="automate_email",
operation="send",
to=["recipient@example.com"],
subject="Hello from AgentNode",
body_text="This email was sent by an AI agent."
)
Usage
Send HTML Email
result = run(
action="automate_email",
operation="send",
to=["team@company.com"],
subject="Build Passed",
body_html="<h1>All tests passed</h1><p>Branch: main, Commit: a3f8b2c</p>"
)
Read and Filter Inbox
result = run(
action="automate_email",
operation="read_inbox",
folder="INBOX",
filter_subject_contains="invoice",
since="2025-01-01",
limit=50
)
Auto-Respond to Matching Emails
result = run(
action="automate_email",
operation="auto_respond",
folder="INBOX",
match_subject="out of office",
reply_body="Thank you for your message. I will respond when available."
)
API Reference
| Capability | Description |
|---|---|
automate_email | Send, receive, filter, and auto-respond to emails |
Operations: send, read_inbox, auto_respond, forward, move_to_folder, download_attachments
Requirements
| Variable | Required | Description |
|---|---|---|
SMTP_HOST | Yes | SMTP server hostname (e.g., smtp.gmail.com) |
SMTP_PORT | Yes | SMTP server port (e.g., 587) |
SMTP_USER | Yes | SMTP authentication username |
SMTP_PASSWORD | Yes | SMTP authentication password or app password |
IMAP_HOST | Yes | IMAP server hostname (e.g., imap.gmail.com) |
License
MIT
Version History
Capabilities
Permissions
This package declares the following access levels. Review before installing.
agentnode install email-automation-packEnvironment Variables
SMTP_HOSTrequiredSMTP_PORTrequiredSMTP_USERrequiredSMTP_PASSWORDrequiredIMAP_HOSTrequiredFiles (3)
License
MITStats
Compatibility
Frameworks
Runtime
pythonPython Version
>=3.10Trust & Security
Publisher
AgentNode
@agentnode