Method: legacySdk.legacySendEmailWithAttachment

Full name: projects.locations.instances.legacySdk.legacySendEmailWithAttachment

Legacy RPC for send email with attachment.

HTTP request


Path parameters

Parameters
instance

string

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

string

Required. The email subject.

message

string

Required. The email message.

recipients[]

string

Required. The list of recipients.

attachmentFileName

string

Optional. The attachment file name.

attachmentContent

string

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.