smtpapi
Simple wrapper to use SendGrid SMTP API
Decision gist · record as of 2026-08-14
Yes, if you are already using SendGrid's SMTP endpoint and need to attach SendGrid-specific directives to your messages. The zero-dependency design and permissive MIT license make it a low-risk addition. However, verify that your use case aligns with SendGrid's current SMTP API feature set, as the last release was in 2022 and you should confirm the package still covers your needs.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with no runtime dependencies.
- Last release was in 2022, but the repository remains active with recent commits as of 2026-06-25.
License · maintenance · safety
MIT License (permissive) — MIT License permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
last release 2022-03-09 (1619 days) · last repo commit 2026-06-25 · 31 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 140,509 downloads/mo, #11,271 on PyPI
Alternatives
Verify before relying
pip install smtpapi
from smtpapi import SMTPAPIHeader
header = SMTPAPIHeader()
header.add_to('email@email.com')
print(header.json_string())- Whether the package is actively maintained for modern SendGrid API changes or if it has been superseded by a newer official library.
- Current compatibility with SendGrid's SMTP API feature set and whether all documented features are still supported.
What it is and what it does
smtpapi is a lightweight Python wrapper that constructs SendGrid SMTP API headers for insertion into standard SMTP messages. It provides a simple object interface to build headers that tell SendGrid's SMTP servers how to handle your email—adding recipients, scheduling delivery, applying templates, and other SendGrid-specific features—without requiring a separate HTTP API call.
The package has no external runtime dependencies and works by serializing your configuration into JSON headers that SMTP clients can attach to outgoing mail. You instantiate an SMTPAPIHeader object, call methods like add_to() to configure recipients or other directives, then export the result as a JSON string to include in your SMTP transmission. It's designed for developers who prefer SMTP over HTTP for email delivery but want to leverage SendGrid's advanced features.
Use it for
- Adding multiple recipients or CC/BCC addresses to an SMTP message without modifying the envelope.
- Scheduling email delivery for a future time through SendGrid's SMTP API.
- Applying SendGrid templates or categories to emails sent via SMTP instead of the HTTP API.
- Building custom SMTP clients that need SendGrid-specific headers without pulling in a full SDK.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are already using SendGrid's SMTP endpoint and need to attach SendGrid-specific directives to your messages.
The zero-dependency design and permissive MIT license make it a low-risk addition. However, verify that your use case aligns with SendGrid's current SMTP API feature set, as the last release was in 2022 and you should confirm the package still covers your needs.
Install
smtpapi on PyPI
Before you install
Low friction install with no runtime dependencies. Last release was in 2022, but the repository remains active with recent commits as of 2026-06-25.
License in practice
MIT License permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install smtpapi
from smtpapi import SMTPAPIHeader
header = SMTPAPIHeader()
header.add_to('email@email.com')
print(header.json_string())
Verify before relying
- Whether the package is actively maintained for modern SendGrid API changes or if it has been superseded by a newer official library.
- Current compatibility with SendGrid's SMTP API feature set and whether all documented features are still supported.
Package facts
| License | MIT License permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 1,619 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 140,509 / month, #11,271 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 2.7Programming Language :: Python :: 3.10Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: smtpapi-0.4.12-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “sendgrid smtp api headers”
- smtpapiBuilds SendGrid SMTP API headers for use in SMTP email transmission,…
- django-sendgrid-v5Provides a Django email backend that sends messages through…
- dj-email-urlConfigures Django email backends from environment variables using…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also python-http-client · sendgrid · django-sendgrid-v5 · apache-airflow-providers-sendgrid · emails · sparkpost · apache-airflow-providers-smtp · prefect-email · yagmail · Flask-Mail