Skip to main content

mcs-adapter-smtp

SMTP adapter for the Model Context Standard (MCS).

Encapsulates all SMTP wire-level details (smtplib, MIME construction) behind a clean adapter interface. Drivers like mcs-driver-mailsend delegate all sending I/O to this adapter so they never touch smtplib directly.

Supports implicit SSL (port 465), STARTTLS (port 587), and plaintext (port 25).

Zero runtime dependencies -- uses only the Python standard library.

Installation

pip install mcs-adapter-smtp

Quick start

from mcs.adapter.smtp import SmtpAdapter

adapter = SmtpAdapter(
    host="smtp.example.com",
    user="alice@example.com",
    password="...",
    sender_name="Alice Smith",  # optional display name
)
adapter.send_message(to="bob@example.com", subject="Hello", body="Hi Bob!")

Provided methods

Method Description
send_message Send a plain-text e-mail
send_html_message Send an HTML e-mail with optional text fallback
check_connection Test SMTP connectivity and authentication

Links

License

Apache-2.0

Metadata

Release files for mcs-adapter-smtp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcs-adapter-smtp 0.1.0
File Size Uploaded
mcs_adapter_smtp-0.1.0.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcs-adapter-smtp 0.1.0
File Interpreter ABI Platform
mcs_adapter_smtp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.4 kB

Release files / mcs_adapter_smtp-0.1.0.tar.gz

Download URL mcs_adapter_smtp-0.1.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
08a7070c75cf074b69e1da3f06706d2943b77483e2183ea09a3330f858abf8dc
BLAKE2b-256 checksum
How to use checksums
29b35ce88ed4f206c571b5182b59de1de0a3266ffc7bcd0e8f3a21d9c852138c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Release files / mcs_adapter_smtp-0.1.0-py3-none-any.whl

Download URL mcs_adapter_smtp-0.1.0-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bfb5663c5ca6c236000d727061d1c1cadb906c3bd5d444714814116d79b4b0af
BLAKE2b-256 checksum
How to use checksums
596db7a5117498a7e34957e5694f0a796dec94cf7942ec7dcc66402013bef356
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page