Closed svendeckers closed 4 years ago
require("sendmail")({ setup options})({ .. email options ..});
so you could do:
const sendmail = require("sendmail")({
// devPort ... dekim ... whatever extras you need
});
let info = await new Promise( (r,e) => sendmail({
from: 'no-reply@mydomain.com',
to: 'user@domain.tld',
subject: 'test sendmail',
html: 'Hello world.'
}, (err,res) => r({err,res})) );
let insp = require('util').inspect;
console.log(insp(info.err), insp(info.res));
@svendeckers im just getting around to this thread - are you all good to go now ?
Hi @GreenPioneer , no, I needed to get it working the same day unfortunately, so I ended up using a backend with nodemailer.
Hi,
I have tried several setup options, but none have worked for me so far. I am using the lastest version of sendmail (1.6.1) and I'm getting these errors:
1) Setup one
gives this error:
2) Setup two
gives this error:
3) Setup three
gives this error:
So, erm, help? Please? :-)