Closed ManushGupta closed 6 years ago
Hey,
currently i am importing sendmail with these options on my server:
const sendmail = require('sendmail')({ logger: { debug: console.log, info: console.info, warn: console.warn, error: console.error }, silent: false });
and using the following code to invoke it,
sendmail({ from: email, to: req.fields.email, subject: 'Kuwa passcode for your registration.', html: passcode, }, function(err, reply) { console.log(err && err.stack); console.dir(reply); });
This is the log in the console:
mx resolved: [ { exchange: 'alt4.gmail-smtp-in.l.google.com', priority: 40 }, { exchange: 'alt3.gmail-smtp-in.l.google.com', priority: 30 }, { exchange: 'alt2.gmail-smtp-in.l.google.com', priority: 20 }, { exchange: 'alt1.gmail-smtp-in.l.google.com', priority: 10 }, { exchange: 'gmail-smtp-in.l.google.com', priority: 5 } ] MX connection created: alt4.gmail-smtp-in.l.google.com recv gmail.com>220 mx.google.com ESMTP e2-v6si2825998edc.442 - gsmtp send gmail.com>EHLO gmail.com recv gmail.com>250-mx.google.com at your service, [18.208.67.193] recv gmail.com>250-SIZE 157286400 recv gmail.com>250-8BITMIME recv gmail.com>250-STARTTLS recv gmail.com>250-ENHANCEDSTATUSCODES recv gmail.com>250-PIPELINING recv gmail.com>250-CHUNKING recv gmail.com>250 SMTPUTF8 send gmail.com>MAIL FROM:manushgupta@gmail.com recv gmail.com>250 2.1.0 OK e2-v6si2825998edc.442 - gsmtp send gmail.com>RCPT TO:manushgupta@gmail.com recv gmail.com>250 2.1.5 OK e2-v6si2825998edc.442 - gsmtp send gmail.com>DATA recv gmail.com>354 Go ahead e2-v6si2825998edc.442 - gsmtp sending mail <Buffer 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 74 65 78 74 2f 68 74 6d 6c 0d 0a 46 72 6f 6d 3a 20 6d 61 6e 75 73 68 67 75 70 74 61 40 67 6d 61 69 6c 2e 63 ... > send gmail.com>Content-Type: text/html From: manushgupta@gmail.com To: manushgupta@gmail.com Subject: Kuwa passcode for your registration. Message-ID: 5acd2b75-d8ab-dbbe-cdc9-ca1f6fe11e5e@gmail.com Content-Transfer-Encoding: 7bit Date: Thu, 02 Aug 2018 20:47:47 +0000 MIME-Version: 1.0
DcDDSl send gmail.com> send gmail.com>. recv gmail.com>250 2.0.0 OK 1533242867 e2-v6si2825998edc.442 - gsmtp send gmail.com>QUIT recv gmail.com>221 2.0.0 closing connection e2-v6si2825998edc.442 - gsmtp OK: 221 221 2.0.0 closing connection e2-v6si2825998edc.442 - gsmtp
null '221 2.0.0 closing connection e2-v6si2825998edc.442 - gsmtp\r\n' send gmail.com>
As far as i can tell, there are no errors. But i dont receive any email on the provided address.
Sorry my bad, it was going to spam.
Hey,
currently i am importing sendmail with these options on my server:
const sendmail = require('sendmail')({ logger: { debug: console.log, info: console.info, warn: console.warn, error: console.error }, silent: false });
and using the following code to invoke it,
sendmail({ from: email, to: req.fields.email, subject: 'Kuwa passcode for your registration.', html: passcode, }, function(err, reply) { console.log(err && err.stack); console.dir(reply); });
This is the log in the console:
mx resolved: [ { exchange: 'alt4.gmail-smtp-in.l.google.com', priority: 40 }, { exchange: 'alt3.gmail-smtp-in.l.google.com', priority: 30 }, { exchange: 'alt2.gmail-smtp-in.l.google.com', priority: 20 }, { exchange: 'alt1.gmail-smtp-in.l.google.com', priority: 10 }, { exchange: 'gmail-smtp-in.l.google.com', priority: 5 } ] MX connection created: alt4.gmail-smtp-in.l.google.com recv gmail.com>220 mx.google.com ESMTP e2-v6si2825998edc.442 - gsmtp send gmail.com>EHLO gmail.com recv gmail.com>250-mx.google.com at your service, [18.208.67.193] recv gmail.com>250-SIZE 157286400 recv gmail.com>250-8BITMIME recv gmail.com>250-STARTTLS recv gmail.com>250-ENHANCEDSTATUSCODES recv gmail.com>250-PIPELINING recv gmail.com>250-CHUNKING recv gmail.com>250 SMTPUTF8 send gmail.com>MAIL FROM:manushgupta@gmail.com recv gmail.com>250 2.1.0 OK e2-v6si2825998edc.442 - gsmtp send gmail.com>RCPT TO:manushgupta@gmail.com recv gmail.com>250 2.1.5 OK e2-v6si2825998edc.442 - gsmtp send gmail.com>DATA recv gmail.com>354 Go ahead e2-v6si2825998edc.442 - gsmtp sending mail <Buffer 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 74 65 78 74 2f 68 74 6d 6c 0d 0a 46 72 6f 6d 3a 20 6d 61 6e 75 73 68 67 75 70 74 61 40 67 6d 61 69 6c 2e 63 ... > send gmail.com>Content-Type: text/html From: manushgupta@gmail.com To: manushgupta@gmail.com Subject: Kuwa passcode for your registration. Message-ID: 5acd2b75-d8ab-dbbe-cdc9-ca1f6fe11e5e@gmail.com Content-Transfer-Encoding: 7bit Date: Thu, 02 Aug 2018 20:47:47 +0000 MIME-Version: 1.0
DcDDSl send gmail.com> send gmail.com>. recv gmail.com>250 2.0.0 OK 1533242867 e2-v6si2825998edc.442 - gsmtp send gmail.com>QUIT recv gmail.com>221 2.0.0 closing connection e2-v6si2825998edc.442 - gsmtp OK: 221 221 2.0.0 closing connection e2-v6si2825998edc.442 - gsmtp
null '221 2.0.0 closing connection e2-v6si2825998edc.442 - gsmtp\r\n' send gmail.com>
As far as i can tell, there are no errors. But i dont receive any email on the provided address.