yahoo_send_mail
Send a new Yahoo Mail email over SMTP, or save it as a draft by default, with cc/bcc, attachments, HTML/plain text, and account selection.
Instructions
Send a new email via SMTP, or save as draft (default).
Args: to: Recipient(s), comma-separated (e.g. "a@x.com,b@y.com") subject: Subject line body: Email body (plain text by default; set html=True for HTML) cc: CC recipient(s), comma-separated bcc: BCC recipient(s), comma-separated html: True if body is HTML; False (default) for plain text attachments: List of absolute file paths to attach. Each must lie inside an allowed folder: ~/Downloads or a temp folder (the system temp dir, /tmp), unless YAHOO_MAIL_ALLOWED_DIRS replaces that list. Otherwise nothing is saved or sent and an error is returned. send_now: True to dispatch via SMTP immediately. Default False = save to Drafts folder. account: Account key from accounts.json, e.g. "personal" or "work". Default: the account that file marks as default.
Returns dict with status ("draft_saved" or "sent"), folder/recipients, and message id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | Yes | ||
| bcc | No | ||
| body | Yes | ||
| html | No | ||
| account | No | ||
| subject | Yes | ||
| send_now | No | ||
| attachments | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||