I see that loopback comes with nodemailer integrated as a node module. I tried to follow the docs to send a hello world mail via the angular-sdk
http://apidocs.strongloop.com/loopback/#emailsendoptions-callback
However, the docs are not really specific here. I tried the following:
User.email
from: "info@test.com"
to: "sven@gmail.com"
subject: "hello world"
html: "<b> Hello Wolrd </b>"
which gives me this error, even though I have an authenticated user instance.
POST http://localhost:3000/api/users/Emails 401 (Unauthorized) angular.js:8407
intercepted rejection of /api/users/Emails 401
My question is how can I configure the email module as to set up SMTP etc. Any help would be much appreciated.
Thanks Sven