I\'m trying to perform a simple Reply to email with Gmail API.
I\'m receiving the following error:
Google.GoogleApiException: \'Google.Apis.Re
Note that Users.messages: send method supports an /upload URI and accepts uploaded media with the following characteristics:
Also, you may want to check details given in Sending Email,
Emails are sent as base64url encoded strings within the
raw
property of a message resource. The high-level workflow to send an email is to:
- Create the email content in some convenient way and encode it as a base64url string.
- Create a new message resource and set its
raw
property to the base64url string you just created.- Call
messages.send
, or, if sending a draft,drafts.send
to send the message.
With these, try adding the raw
parameter in your request body with value set to a base64 encoded email.
Just for additional insights (as these are not C# related), see these related SO posts