balderdashy / sails-hook-email

Sails email hook
67 stars 34 forks source link

(QUESTION) How to specify a custom SMTP service?, instead of a 'well-known service' #11

Closed luisincrespo closed 9 years ago

luisincrespo commented 9 years ago

Hi.

In the configs you have a service attribute to specify a 'well known service', what if I want to specify a custom SMTP service?.

jetsonjohn commented 9 years ago

+1 I have to do the same.

Maxtermax commented 9 years ago

+1 same question

tinkusam commented 9 years ago

Use the 'transporter' option under sails.config.email which will override 'service' and 'auth' options.

....
transporter: {
  host: 'smtpout.secureserver.net', // Godaddy SMTP server
  port: 465,
  secure: true,
  auth: {
    user: "<mail account username>",
    pass: "<mail account password>"
  }
},
...
sgress454 commented 9 years ago

Thanks @tinkusam. If someone wants to put in a PR to add that to the docs, they are welcome!