balderdashy / sails-hook-email

Sails email hook
67 stars 34 forks source link

Can you show me an example how to change transporter to smtpTransport #22

Closed proton2b closed 9 years ago

proton2b commented 9 years ago

Hi, im trying to setup sails-hook-email with smtpTransport. But i have no idea how to change the transporter. Can you give me an example snipplet?

Thanks in advance and best regards Rincex

proton2b commented 9 years ago

Found already the solution. Its almost like described. npm install sails-hook-email --save Create file with following content. sailsproject\config\email.js:

module.exports.email = {
    transporter: {
        host: '192.168.1.2',
        port: 25
    },
    testMode: false,
};

I forgot to disable testMode which is by default true.