sirkitree/fivefifteen — pull request #50 by mateu-aguilo-bosch (2014-03-04 09:32:34+00:00)
Title: Send emails

**IMPORTANT**: This PR depends on #48. Please, merge that one first.

The work done here will send automatically an HTML email that degrades to plain text to the selected address (right now it's still hard coded to be Seth).

To do so I had to:
1. Create a Node.js backend (done in #48).
1. Create an `/api/*` route exclusion that will be served by Node.js and not routed to AngularJS.
1. Update project dependencies to include `emailjs`.
1. Create email endpoint that will get the posted data and send the email.

After pulling the code of #48 and this one, you will need to do:
```sh
npm install
bower install
```

Since the `Gruntfile.js` was updated to match the *latest and greatest* you no longer do `grunt server`, you now need to do `grunt serve:debug`.

You will need to add your GMail credentials to `lib/controllers/email.js`. **Be careful not to push your credentials to GitHub**. We need a way to deal with credentials and sensitive data in this project, any ideas or known trends in this respect @q0rban, @sirkitree, @webthingee? Maybe in the future we'll want a `fivefifteen@lullabot.com` account as the sender account.

This is the email I got (while posing as Seth) from my fake report. Mind the attached image:
![fivefifteen report - mateu lullabot com - lullabot mail 2014-03-04 10-14-46 2014-03-04 10-22-29](https://f.cloud.github.com/assets/1140906/2319501/8578e272-a37e-11e3-8b2c-79e6104eeca4.jpg)