Full name: projects.locations.instances.legacySdk.legacySendEmailWithAttachment
Legacy RPC for send email with attachment.
HTTP request
Path parameters
Parameters | |
---|---|
instance |
Required. The SendEmailWithAttachment request. Format: projects/{project}/locations/{location}/instances/{instance}/legacySdk:legacySendEmailWithAttachment |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "subject": string, "message": string, "recipients": [ string ], "attachmentFileName": string, "attachmentContent": string } |
Fields | |
---|---|
subject |
Required. The email subject. |
message |
Required. The email message. |
recipients[] |
Required. The list of recipients. |
attachmentFileName |
Optional. The attachment file name. |
attachmentContent |
Optional. The attachment content. |
Response body
If successful, the response body is an empty JSON object.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.