Skip to main content

Email Automation Pack

TrustedSandbox optionalv1.0.0MITVerified80

by AgentNode · published 6 months 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.

langchaincrewaigeneric

Quick Start

bash
agentnode install email-automation-pack

Runs in a subprocess with filtered environment by default. Declared permissions are policy-checked, not sandboxed.

Usage

From package
python
from 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_HOST

SMTP server hostname (e.g., smtp.gmail.com)

required
SMTP_PORT

SMTP server port (e.g., 587 for TLS)

required
SMTP_USER

SMTP authentication username

required
SMTP_PASSWORD

SMTP authentication password or app-specific password

required
IMAP_HOST

IMAP server hostname for reading emails (e.g., imap.gmail.com)

required

Runs locally on your machine. No execution data is sent to AgentNode. Permissions are checked before execution. Learn how this works

Verification

high confidence80/100✔ Verified
smokeReturned valid result
+25/25
testsTests failed
0/15
importAll tools imported successfully
+15/15
installInstalled in 1.7s
+15/15
contractAll contract checks passed
+10/10
determinismConsistent output across runs (normalized)
+5/5
reliability3/3 runs passed
+10/10

Package installs and imports correctly. runtime checks passed.

install1.7s
import114ms
smoke141ms
tests1.2s

This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.

Verified in real_auto mode

Python 3.12.3ffmpegpopplertesseractuv

Last verified 15d 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

Version History

Capabilities

email_automationautomate_emailtool

Permissions

Sandbox optionalFrom a trusted publisher — runs on the host by default. You can require isolation with sandbox.host_trust_policy.

Declared by the publisher. Checked before execution by the policy gate.

Networkunrestricted
Filesystemnone
Code Executionnone
Data Accessconnected_accounts
User Approvalonce

Permissions are policy-checked before execution. For trusted and curated packages that run on the host, network and filesystem access are policy-checked but not OS-sandboxed. When runtime isolation is required for untrusted/community code, AgentNode uses sandbox-or-fail-closed if the required container runtime and pinned image are available. Learn more

Privacy

All tool execution happens locally on your machine. AgentNode never receives:

  • • Tool inputs or outputs
  • • Execution logs
  • • Data your agent processes

Only install events and search queries are sent to the registry.

bash
agentnode install email-automation-pack

Environment Variables

SMTP_HOSTrequired
SMTP_PORTrequired
SMTP_USERrequired
SMTP_PASSWORDrequired
IMAP_HOSTrequired

Files (3)

License

MIT

Stats

Downloads0
Installs0
Versionv1.0.0
Published3/16/2026
Channelstable
Typetoolpack
Entrypointemail_automation_pack.tool

Compatibility

Frameworks

langchaincrewaigeneric

Runtime

python

Python Version

>=3.10

Trust & Security

PublisherTrusted
SignatureNone
ProvenanceNone
Security Issues0

Publisher

A

AgentNode

@agentnode