mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-04 07:02:45 +08:00
update
This commit is contained in:
parent
ee35078ce4
commit
dc2255dbe7
1 changed files with 14 additions and 10 deletions
|
@ -167,19 +167,23 @@ module.exports = (options, callback) => {
|
|||
});
|
||||
break;
|
||||
case 'relay':
|
||||
deliveries.push({
|
||||
to: options.to,
|
||||
mx: target.value.mx,
|
||||
mxPort: target.value.mxPort,
|
||||
mxAuth: target.value.mxAuth,
|
||||
mxSecure: target.value.mxSecure
|
||||
(Array.isArray(options.to) ? options.to : [].concat(options.to || [])).forEach(to => {
|
||||
deliveries.push({
|
||||
to,
|
||||
mx: target.value.mx,
|
||||
mxPort: target.value.mxPort,
|
||||
mxAuth: target.value.mxAuth,
|
||||
mxSecure: target.value.mxSecure
|
||||
});
|
||||
});
|
||||
break;
|
||||
case 'http':
|
||||
deliveries.push({
|
||||
to: options.to,
|
||||
http: true,
|
||||
targetUrl: target.value
|
||||
(Array.isArray(options.to) ? options.to : [].concat(options.to || [])).forEach(to => {
|
||||
deliveries.push({
|
||||
to,
|
||||
http: true,
|
||||
targetUrl: target.value
|
||||
});
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue