How send email via port 587 with TLS? trying: import smtp, net let ctx = newContext(protVersion = protTLSv1, verifyMode = CVerifyPeer, certFile = "mycert.pem", keyFile="mycertkey.pem") let smtpConn = newSmtp(useSsl = false, debug=true, sslContext = ctx) smtpConn.connect("smtp.office365.com", Port 587) #smtpConn.connect("smtp.gmx.net", Port 587) smtpConn.auth("***", "***")
get error: Error: unhandled exception: Expected 334 reply, got: 504 5.7.4 Unrecognized authentication type [DB6PR04CA0034.eurprd04.prod.outlook.com] [ReplyError] for gmx.net: Error: unhandled exception: Expected 334 reply, got: 530 Must issue a STARTTLS command first [ReplyError]