13 lines
471 B
JavaScript
13 lines
471 B
JavaScript
'use strict';
|
|||
|
|
// No SMTP on a phone. Returning a transporter that reports "not sent" keeps the digest and
|
||
|
|
// incident-alert code paths running normally instead of throwing — server.js already handles
|
||
|
|
// an unconfigured mailer gracefully, so this is the shape it expects.
|
||
|
|
module.exports = {
|
||
|
|
createTransport() {
|
||
|
|
return {
|
||
|
|
sendMail: async () => ({ messageId: 'local-mode-no-email', accepted: [], rejected: [] }),
|
||
|
|
verify: async () => false,
|
||
|
|
};
|
||
|
|
},
|
||
|
|
};
|