node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
import sendmailFactory from 'sendmail';
var index = {
init (providerOptions, settings) {
const sendmail = sendmailFactory({
silent: true,
...providerOptions
});
return {
send (options) {
return new Promise((resolve, reject)=>{
const { from, to, cc, bcc, replyTo, subject, text, html, ...rest } = options;
const msg = {
from: from || settings.defaultFrom,
to,
cc,
bcc,
replyTo: replyTo || settings.defaultReplyTo,
subject,
text,
html,
...rest
};
sendmail(msg, (err)=>{
if (err) {
reject(err);
} else {
resolve();
}
});
});
}
};
}
};
export { index as default };
//# sourceMappingURL=index.mjs.map