POST
POST
GmailGmailSendSend email
POST
https://api.lowcodeapi.com/gmail/v1/users/userId/messages/send
Request Body
Content Type : application/json
Request Parameters
rawstring
RFC 2822 formatted and base64url encoded string
snippetstring
A short part of the message text
Overview

Send email

Gamil uses RFC 2822 formatted, base64url encoded string as a payload for sending email. To, From, Subject, CC, BCC, ReplyTo gets formatted as per RFC 2822 and gets converted to base64string




// RFC2822 payload format

From: Name<[email protected]>
To: [email protected]
Content-Type: text/html; charset=utf-8
MIME-Version: 1.0
Subject: =?utf-8?B?SGVsbG8=?=

<p>This is email</p>




Sending Quota

You can send 100* email per day on free gmail account. You can send 1500 - 2000* email per day on Google workspace account.

More details https://developers.google.com/apps-script/guides/services/quotas

API Reference Link
https://developers.google.com/gmail/api/reference/rest/v1/users.messages/sendhttps://developers.google.com/apps-script/guides/services/quotas https://developers.google.com/gmail/api/reference/quota
Response
API response data will be shown here once the request is completed.
Snippet
cURL
curl -X POST \
 'https://api.lowcodeapi.com/gmail/v1/users/userId/messages/send' \
 -H 'Cache-Control: no-cache' \
 -H 'Content-Type: application/json' --data-raw '{
  "raw": "",
  "snippet": ""
}'
© 2024LowCodeAPI

Last Updated : 2024-12-16 14:03 +00:00