title: GMail API with JS AJAX calls
body: <p>We use a common student information system to manage our school.  It is easily customized on the client side, and there are a couple of places where we'd like to trigger an e-mail when some action happens (form submission, page loaded, etc).  It is not possible to use server-side programming languages like PHP, ASP, or Java.</p>
  
  <p>What we'd like to do is use an AJAX call to send the e-mail.  I have this working entirely in JavaScript, but I have to be logged in with the GMail account form which I want to send.  We need to this be authenticated once (or as long as the bearer token is valid) and then send off e-mails once the user action happens.</p>
  
  <p>Since the client-side languages seem to be able to hit those endpoints and send an e-mail off without the sending account being "logged in" in a browser session, this seems possible to me.  Is it?</p>
  
  <p>I also realize that creating a server-side script that uses GMail as an SMTP relay is an option, but many schools who use Google Apps For Education simply don't have a web server on site that can host such a script.  A client-side plugin is really what we want to build.</p>