Skip to main content

Mail-sending driver for the Model Context Standard -- lets an LLM send e-mail.

Project description

mcs-driver-mailsend

Mail-sending driver for the Model Context Standard (MCS).

Provides tools for sending plain-text and HTML e-mail. The actual I/O is delegated to a pluggable adapter, making the same driver work with SMTP, Gmail API, Microsoft Graph, or any future backend.

Installation

pip install mcs-driver-mailsend

# With SMTP adapter
pip install mcs-driver-mailsend[smtp]

Quick start

from mcs.driver.mailsend import MailsendToolDriver

# SMTP (default adapter)
td = MailsendToolDriver(
    adapter="smtp",
    host="smtp.example.com",
    user="alice@example.com",
    password="...",
    sender_name="Alice Smith",  # optional display name
)

tools = td.list_tools()       # 2 tools
result = td.execute_tool("send_message", {
    "to": "bob@example.com",
    "subject": "Hello",
    "body": "Hi Bob!",
})

Tools

Tool Description
send_message Send a plain-text e-mail
send_html_message Send an HTML e-mail with optional text fallback

Adapter protocol

The driver defines a MailsendPort typing protocol. Any object that implements send_message and send_html_message satisfies the contract -- no inheritance required.

Links

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcs_driver_mailsend-0.2.1.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcs_driver_mailsend-0.2.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file mcs_driver_mailsend-0.2.1.tar.gz.

File metadata

  • Download URL: mcs_driver_mailsend-0.2.1.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for mcs_driver_mailsend-0.2.1.tar.gz
Algorithm Hash digest
SHA256 2e088ebd2fa8145dd14dcde3af9f87c396477e2c33cbb79fd47b79ccf59ffda0
MD5 09ce08971b6a114bde2b6323b472d51a
BLAKE2b-256 7ffa9d3d9d2fea2b6cc7e9e38511da91926b1141892736957747309edcb6460a

See more details on using hashes here.

File details

Details for the file mcs_driver_mailsend-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcs_driver_mailsend-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 283677ed2fea99769b93570c972f510b0aa2f0e5c2f7d1abd836c8bb1829bec5
MD5 da374d04599f985acccb78622fb8f6fc
BLAKE2b-256 f8cf569f2d2ba5bfc0aec8d3635d9bd6bb789b939d28a3f6382506a70a5b09f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page