send_email
Send outbound emails from a provisioned address to any recipient. Specify subject, body, and optional reply-to or HTML content for communication via the agentline platform.
Instructions
Send an outbound email from a provisioned address. from_email must be
one of your provisioned addresses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_email | Yes | ||
| to_email | Yes | ||
| subject | Yes | ||
| body | Yes | ||
| body_html | No | ||
| reply_to | No |
Implementation Reference
- agentline_mcp/server.py:303-325 (handler)The send_email tool handler function. It is decorated with @mcp.tool(), accepts from_email, to_email, subject, body, optional body_html and reply_to parameters, and delegates to the Agentline SDK client's send_email method.
@mcp.tool() def send_email( from_email: str, to_email: str, subject: str, body: str, body_html: str | None = None, reply_to: str | None = None, ) -> dict: """Send an outbound email from a provisioned address. `from_email` must be one of your provisioned addresses. """ try: return _client_or_init().send_email( from_=from_email, to=to_email, subject=subject, body=body, body_html=body_html, reply_to=reply_to, ) except AgentlineError as e: return {"error": str(e), "status_code": e.status_code} - agentline_mcp/server.py:303-303 (registration)The @mcp.tool() decorator registers send_email as an MCP tool on the FastMCP server instance.
@mcp.tool() - agentline_mcp/server.py:304-311 (schema)The type annotations on the send_email function parameters serve as the input schema, defining that from_email, to_email, subject, and body are required strings, while body_html and reply_to are optional strings.
def send_email( from_email: str, to_email: str, subject: str, body: str, body_html: str | None = None, reply_to: str | None = None, ) -> dict: