I try the use the - try it of Google REST API - Users.messages: send .
There is there a required parameter - raw
-
The entire email message in an RFC 2822 formatted and base64url encoded string. Returned in messages.get and drafts.get responses when the format=RAW parameter is supplied.
I checked about RFC 2822 format and seems it should displayed as the sample here , then I encoded it the base64URL with this encoder and paste it the raw
field of the try it and I get - Invalid value for ByteString: http://ostermiller.org/calc/encode.html
.
Can you provide me a correct RFC 2822 format
and its corresponding base64URL
which it would work in the above try it ?