0
votes

I want to create a extra function for our Company Google Apps.

I want to add the a button functionality in gmail that will forward all selected emails. Somehow Gmail does not have Bulk Forwarding.

Anyway I know it's possible with a Google Speadsheet and all but it needs to be more friendly then that.

Now companies like streak and boomerang use a chrome Extension to Schedule certain emails. I know how to get the list/array of selected emails with javascript in a chrome extension.

But after getting that list I want to be able to use the Google Apps Script to get the ThreadID's and collect all their data and Forward the emails.

I know how to get the thread data and forward it seperately in Google apps script.

I have no Idea how to combine these too.

1

1 Answers

0
votes

Yes its possible but it will only work on a single account since that is how gas permissions work. Ive called gas from a chrome extension without problems. You need to add a few allowed domains for the ajax call. Pass the array of threadids as json to a gas content script.