Dismiss
Announcing Stack Overflow Documentation

We started with Q&A. Technical documentation is next, and we need your help.

Whether you're a beginner or an experienced developer, you can contribute.

Sign up and start helping → Learn more about Documentation →

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.

share|improve this question

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

share|improve this answer
    
but i can't do this when the body is large (a groceries list), since the URL size is limited – IttayD Mar 15 '15 at 6:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.