Search code examples
emailgmailgmail-api

Forward mail using gmail API


Is there any code provided by google to forward mail. because i haven't found one. If there is any way to forward mail using GMAIL API with extra content to send with original message. Please help.


Solution

  • I don't see any specific forward operation...

    You'll have to:

    1. get the message,
    2. add your extra content to the top of the original message and
    3. change the to address, then
    4. remove any cc and bcc addresses [Per @martin-paucot notes from his actual experience doing this]
    5. send it.

    Not much help to you but take note of the Threads.