ut-port-mail

UT port mail module


License
Apache-2.0
Install
npm install ut-port-mail@8.6.4

Documentation

Mail port: ut-port-mail

The purpose of this port is for sending mails from remote/local servers.

In the UT5 implementations the Mail port is initialized in the following manner:

    module.exports = {
        id: 'mail',
        type: 'mail',
        logLevel: 'trace',
        url: 'smtp://127.0.0.1:1234',
        service: false,
        //setting that came from node mailer module, they are directly applied
        settings: {},
        ssl: false,
        receive: function(msg) {
            return msg;
        },
        send: function(msg) {
            return msg;
        }
    }

all of the properties that can be set can be seen in the Nodemailer github page.

Gmail example

module.exports = {
    id: 'mail',
    type: 'mail',
    logLevel: 'trace',
    url: 'smtp://smtp.gmail.com',
    service: 'gmail',
    settings: {
        auth: {
            user: 'user',
            pass: 'pass'
        }
    },//setting that came from node mailer module, they are directly applied
    ssl: false,
    receive: function(msg) {
        return msg;
    },
    send: function(msg) {
        return msg;
    }
}