send_email
Send emails via Yandex SMTP with support for CC, BCC, HTML formatting, file attachments, and automatic saving to Sent folder.
Instructions
Send an email via Yandex SMTP.
Args: to: Recipient email address (comma-separated for multiple) subject: Email subject body: Email body (plain text or HTML based on html flag) cc: CC recipients (optional, comma-separated) bcc: BCC recipients (optional, comma-separated) html: If True, body is treated as HTML (default: False) attachments: Optional list of absolute file paths to attach. Each attachment is resolved and must be a regular file. SECURITY: this tool can read any file accessible to the MCP server process and exfiltrate it via email — the MCP client should surface every send_email call for user approval. All attached paths are logged to yandex_mail_mcp.log for audit. save_to_sent: If True (default), append a copy of the sent message to the Sent folder via IMAP APPEND. Yandex does not reliably auto-save SMTP-sent messages to Sent; this ensures a copy exists. Failure to save is non-fatal and logged as a warning.
Returns confirmation with recipients, attached file names, and saved_to_sent (decoded Sent folder name or None).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| subject | Yes | ||
| body | Yes | ||
| cc | No | ||
| bcc | No | ||
| html | No | ||
| attachments | No | ||
| save_to_sent | No |