ut-port-mail
v8.6.4
Published
UT port mail module
Downloads
227
Readme
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;
}
}