0

I am using InboxSDK and gmail API on PHP to build a chrome extension.

Everything is flowing quite okay so far, but I am facing a big obstacle.

What is my purpose?:

Via InboxSDK, I want to handle when a user attaches files.

Send all the information to my server.

Attach the files and send the mail via Gmail API from the server.

Where am I?:

I already authorize the user with OAuth2.0 and keep the tokens and also I am already able to send the e-mails written in Gmail Web via server Gmail API.

I do not know how to move on with handling the files.

How may I proceed?

Also, if there is any alternative way to achieve this without InboxSDK I am happy to hear.

Thank you.

Álvaro N. Franz
  • 1,188
  • 3
  • 17
  • 39

1 Answers1

0

It is not possible as mentioned.

But there is a workaround.

  • Create a draft via InboxSDK.

  • Fetch the draft via gmail API.

  • Send the created draft, which already contains the attached files.

Álvaro N. Franz
  • 1,188
  • 3
  • 17
  • 39