send_email
Send emails immediately without creating drafts. Supports new, reply, and forward actions with HTML content and batch BCC from CSV files.
Instructions
Send emails directly without creating drafts. Supports three actions: 'send_new' to send a new email, 'reply' to reply to an existing email, and 'forward' to forward an existing email. All actions send emails immediately - no drafts are created. Supports multiple recipients, CC, and BCC. The htmlbody parameter accepts HTML format for rich email content. RECOMMENDED FOR BCC: Use bcc_csv_file parameter to provide BCC recipients from a CSV file - this is the preferred method for handling large BCC lists with automatic batching support (up to 500 recipients per batch by default). NOTE: For forward action, 'to' is optional when using 'bcc_csv_file' or 'bcc' - you can forward emails using only BCC recipients. Returns: {success: boolean, message: string, sent_count: integer, failed_count: integer, recipients: array}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | List of CC recipient email addresses (optional). For reply: if not provided, defaults to original CC recipients; if provided (even if empty), replaces original CC recipients. | |
| to | No | List of recipient email addresses (required for send_new, optional for reply and forward). For reply: if not provided, defaults to original sender and recipients; if provided (even if empty), replaces original recipients. For forward: optional when bcc_csv_file is provided. | |
| bcc | No | List of BCC recipient email addresses (optional) | |
| action | Yes | Action to perform: 'send_new' to send a new email immediately (no draft), 'reply' to reply to existing email, 'forward' to forward existing email | |
| subject | No | Email subject (required for send_new, optional for reply/forward) | |
| htmlbody | Yes | Email body content in HTML format. IMPORTANT HTML FORMATTING RULES: (1) Do NOT use <br> between <p> tags - use </p><p> directly for paragraph separation. Using both creates excessive spacing in email clients. (2) Do NOT add newlines or whitespace between HTML block elements (<p>, <div>, <ul>, etc.) - keep HTML compact. (3) Use <p> for paragraphs, <strong>/<em> for emphasis, <ul>/<li> for lists. (4) Only use <br> for line breaks WITHIN a paragraph, not between paragraphs. Correct example: '<p>Hello,</p><p>This is <strong>important</strong>.</p><p>Best regards</p>' | |
| importance | No | Email importance level: 'normal' (default), 'high', or 'low' (optional) | |
| bcc_csv_file | No | **PREFERRED METHOD FOR BCC**: Path to CSV file containing BCC recipients. This is the recommended approach for handling BCC recipients, especially for large lists. CSV must have a single column with header 'Email' or 'email'. The system automatically batches large BCC lists (up to 500 recipients per batch by default) and sends multiple emails as needed. Only available for 'forward' action. When both 'bcc' and 'bcc_csv_file' are provided, they are combined. | |
| cache_number | No | Cache number from browse_email_cache (required for reply/forward, e.g., 1, 2, 3) |