Forward mail using gmail API
I don't see any specific forward
operation...
You'll have to:
get
the message,- add your extra content to the top of the original message and
- change the
to
address, then send
it.
Not much help to you but take note of the Threads.
Watch out while doing this procedure !
I used the answer of Jhon Mee to forward all emails from a user to an other one. If you just change the "To:" it will continue to send the emails to everyone in "Cc:" and "Bcc:"
Here is the procedure:
- Retreive the email in raw format
- Decode the email from base64
- Replace the line "To:" with the email you want to forward to
- Remove the lines "CC:" and "Bcc:"
- Send it