guileen / node-sendmail

send mail without setting up a SMTP server

Home Page:http://guileen.github.com/node-sendmail

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do you plan to use TLS ?

micktaiwan opened this issue · 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