Upgrade to nodemailer 1.0.1

/to @ritch 
The two transport modules are dependencies of nodemailer 1.x. See https://github.com/andris9/Nodemailer/blob/master/package.json. They are not visible to loopback though. I’ll fix the code to handle ‘direct’ and ‘smtp’.

Thanks,

---
Raymond Feng
Co-Founder and Architect @ StrongLoop, Inc.

StrongLoop makes it easy to develop APIs in Node, plus get DevOps capabilities like monitoring, debugging and clustering.

On Jul 23, 2014, at 9:37 PM, Samuel Reed <notifications@github.com> wrote:

> In lib/connectors/mail.js:
> 
> > @@ -58,7 +58,12 @@ MailConnector.prototype.setupTransport = function(setting) {
> >    var connector = this;
> >    connector.transports = connector.transports || [];
> >    connector.transportsIndex = connector.transportsIndex || {};
> > -  var transport = mailer.createTransport(setting.type, setting);
> > +
> > +  var transportModuleName = 'nodemailer-' + (setting.type || 'STUB').toLowerCase() +  '-transport';
> If you specify a type that is not 'stub' (such as smtp), this will fail unless you explicitly add nodemailer-smtp-transport to your project's package.json.
> 
> I would recommend we add nodemailer-smtp-transport and nodemailer-direct-transport to loopback's package.json so they are available here without an explicit install.
> 
> —
> Reply to this email directly or view it on GitHub.
>