Files
recurring-checklist/mobile/src/local/shims/nodemailer.js
T

13 lines
471 B
JavaScript
Raw Normal View History

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