guileen/node-sendmail

Do you plan to use TLS ?

micktaiwan opened this issue · 2 comments

@GreenPioneer
Do you plan to implement an option to use TLS while sending an email ?

See
https://nodemailer.com/smtp/
secure – if true the connection will use TLS when connecting to server.

the client does have tls upgrade

node-sendmail/sendmail.js

Lines 199 to 217 in f8f5666

sock = connect(
opts,
() => {
sock.on('data', function (chunk) {
data += chunk;
parts = data.split(CRLF);
const parts_length = parts.length - 1;
for (let i = 0, len = parts_length; i < len; i++) {
onLine(parts[i])
}
data = parts[parts.length - 1]
});
sock.removeAllListeners('close');
sock.removeAllListeners('end');
return;
}
);

I do not see the relevance of the code you sent