mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-21 07:19:02 +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;
|
break;
|
||||||
case 'relay':
|
case 'relay':
|
||||||
deliveries.push({
|
(Array.isArray(options.to) ? options.to : [].concat(options.to || [])).forEach(to => {
|
||||||
to: options.to,
|
deliveries.push({
|
||||||
mx: target.value.mx,
|
to,
|
||||||
mxPort: target.value.mxPort,
|
mx: target.value.mx,
|
||||||
mxAuth: target.value.mxAuth,
|
mxPort: target.value.mxPort,
|
||||||
mxSecure: target.value.mxSecure
|
mxAuth: target.value.mxAuth,
|
||||||
|
mxSecure: target.value.mxSecure
|
||||||
|
});
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'http':
|
case 'http':
|
||||||
deliveries.push({
|
(Array.isArray(options.to) ? options.to : [].concat(options.to || [])).forEach(to => {
|
||||||
to: options.to,
|
deliveries.push({
|
||||||
http: true,
|
to,
|
||||||
targetUrl: target.value
|
http: true,
|
||||||
|
targetUrl: target.value
|
||||||
|
});
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue