send_gmail_message
Send emails or replies via Gmail with optional CC, BCC, and threading support. Specify recipient, subject, body, and user email to manage email communication effectively.
Instructions
Sends an email using the user's Gmail account. Supports both new emails and replies.
Args: to (str): Recipient email address. subject (str): Email subject. body (str): Email body (plain text). cc (Optional[str]): Optional CC email address. bcc (Optional[str]): Optional BCC email address. user_google_email (str): The user's Google email address. Required. thread_id (Optional[str]): Optional Gmail thread ID to reply within. When provided, sends a reply. in_reply_to (Optional[str]): Optional Message-ID of the message being replied to. Used for proper threading. references (Optional[str]): Optional chain of Message-IDs for proper threading. Should include all previous Message-IDs.
Returns: str: Confirmation message with the sent email's message ID.
Examples: # Send a new email send_gmail_message(to="user@example.com", subject="Hello", body="Hi there!")
Input Schema
Name | Required | Description | Default |
---|---|---|---|
bcc | No | Optional BCC email address. | |
body | Yes | Email body (plain text). | |
cc | No | Optional CC email address. | |
in_reply_to | No | Optional Message-ID of the message being replied to. | |
references | No | Optional chain of Message-IDs for proper threading. | |
subject | Yes | Email subject. | |
thread_id | No | Optional Gmail thread ID to reply within. | |
to | Yes | Recipient email address. | |
user_google_email | Yes |