ImportMessage
Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. This method doesn't perform SPF checks, so it might not work for some spam messages, such as those attempting to perform domain spoofing. This method does not send a message.
Input
| Name | Type | Required | Description |
| Subject | String | False | The subject of the mail message. |
| To | String | False | The email address(es) of the recipient(s). |
| From | String | False | The email address of the sender. |
| CC | String | False | CCed recipient(s). |
| BCC | String | False | BCCed recipient(s). |
| Content | String | False | The message body. |
| Deleted | Bool | False | Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for Google Workspace accounts. |
| NeverMarkSpam | Bool | False | Ignore the Gmail spam classifier decision and never mark this email as SPAM in the mailbox. |
| Attachments | String | False | The attachment content. Either the name of the temp table or the json aggregate. |
Result Set Columns
| Name | Type | Description |
| Id | String | The Id for the message as returned by the server. |