Email Automation Pack
★Trusted◇Sandbox optionalv1.0.0MIT✔Verified80by AgentNode · published 5 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.
Quick Start
agentnode install email-automation-packRuns in a subprocess with filtered environment by default. Declared permissions are policy-checked, not sandboxed.
Usage
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)
Runs locally on your machine. No execution data is sent to AgentNode. Permissions are checked before execution. Learn how this works
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.
Verified in real_auto mode
Last verified 18h 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
Permissions
Declared by the publisher. Checked before execution by the policy gate.
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.
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