Skip to content

Commit aff3411

Browse files
committed
fixed: TLS
1 parent 235cc5d commit aff3411

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

mail.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Mailer.prototype.create = function(subject, body) {
6262
* @param {ResolveMxCallback} callback Callback.
6363
*/
6464
function resolveMx(domain, callback) {
65+
6566
dns.resolveMx(domain, function(err, data) {
6667

6768
if (err) {
@@ -312,6 +313,7 @@ Message.prototype.send = function(smtp, options, fnCallback) {
312313

313314
if (options.secure) {
314315
var internal = framework_utils.copy(options);
316+
internal.host = smtp;
315317
socket = tls.connect(internal, function() { self._send(this, options); });
316318
} else
317319
socket = net.createConnection(options.port, smtp);

0 commit comments

Comments
 (0)