Setup Nodemailer #68

* Update config.js to seperate production, development and 'default' settings based on NODE_ENV
I think even there though, it's fine... I think making them provide a full smtp object (instead of just overriding username/password) is fine there and somewhat expected...

On Jun 10, 2014, at 12:28 PM, Chip Lay <notifications@github.com> wrote:

> In server/config.coffee:
> 
> > +  production:
> > +    buckets:
> > +      adminSegment: 'cms'
> > +    smtp:
> > +      service: 'Mandrill'
> > +      auth:
> > +        user: process.env.MANDRILL_APIKEY
> > +        pass: process.env.MANDRILL_USERNAME
> > +  development:
> > +    smtp:
> > +      service: 'Gmail'
> > +      auth:
> > +        user: 'your.email@gmail.com'
> > +        pass: 'PASSWORD'
> > +
> > +module.exports = _.merge(config[env], config.default, _.defaults)
> The 'smtp' config still goes two levels deep, so I'm not sure you could get around needing a deep lodash style merge, especially as other service specific configs get added.
> 
> —
> Reply to this email directly or view it on GitHub.
>