ut-port-mail

8.6.4 • Public • Published

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;
    }
}

/ut-port-mail/

    Package Sidebar

    Install

    npm i ut-port-mail

    Weekly Downloads

    4

    Version

    8.6.4

    License

    Apache-2.0

    Unpacked Size

    26.3 kB

    Total Files

    13

    Last publish

    Collaborators

    • kalin.krustev