IttayD
IttayD

Reputation: 29143

open gmail compose window from javascript (angular)

How can I open a gmail compose window (I don't care much which - popup/modal) with content I provide from Javascript? The context is a groceries app written in angular js where I want to add a button that will send the current list via email, but with the ability to edit it first (so not using GAS MailApp) In particular, the groceries list is large and can't be put as a URL parameter.

Upvotes: 0

Views: 3193

Answers (1)

Narek Mamikonyan
Narek Mamikonyan

Reputation: 4611

you should open window with this link and parameters

https://mail.google.com/mail/u/0/?view=cm&fs=1&[email protected]&su=SUBJECT&body=BODY&[email protected]&tf=1

Params

to:

su:

body:

bcc:

you can use $window.open with these parameters and provide your text as body

Upvotes: 6

Related Questions