Node js nodemiler Status 250 ok but mail is not received

0 votes

i am facing problem during sending nodejs mail using nodemailer module there is no error appear only showing mail sent with status 250 but mail is not received plz help me how to solve it my node js code is following

nodemailer.createTransport({ sendmail: true })

    var transporter = nodemailer.createTransport({

    host: 'taylor.mxrouting.net',

        port: 587,

      // secure: true,//true for 465 and false for 587

        auth: {

          user: 'xxxxx,

          pass: 'xxxxx'

        },  

      });   

transporter.verify(function(error, success) {

if (error) {

    console.log(error);

} else {

    console.log('Server is ready to take our messages');

}

}); 

  var mailOptions = {

  from: 'SDrive Community',

to: 'sagarvivian@gmail.com',

  subject: 'Email Verification From SDrive',

   html:'<h1 style="color:#9a3fda">Welcome

  to Email Varification Phase!</h1><h3>

Varification Code:<span style="color:#9a3fda">'

+Unique_String+'</span></h3>'      

       };

  transporter.sendMail(mailOptions, function(error, info){

          if (error) {

          console.log(error);

          } else {

console.log('Email sent on: '+found.Email +' ' + info.response);

                    }

                });

and output of above code in below

Email sent on: sagarvivian@gmail.com 250 OK id=1ksMAz-0005ou-Jn                          
Server is ready to take our messages 
Dec 24, 2020 in Web Development by Sagar
• 180 points
4,164 views

1 answer to this question.

0 votes

Hi, @Sagar,

I think you might simply be queuing the email in your instance of SMTP-server and not actually sending it.

Hope it helps!!

To know more about Node.js, join Node.js course online today.

Thank You!!

answered Dec 24, 2020 by Gitika
• 65,770 points

Related Questions In Web Development

0 votes
1 answer

How to check if Node.js is installed?

open a terminal and enter node -v  this will ...READ MORE

answered Nov 13 in Web Development by kavya
67 views
0 votes
1 answer

Is Node.js code visible to the client side?

Minimizing (or minifying) JavaScript files in a ...READ MORE

answered Nov 27 in Web Development by Navya
53 views
0 votes
1 answer

What is the most efficient way to read large file using Node.JS(LTS)?

Using Streams Steps to read a large file ...READ MORE

answered Dec 4 in Web Development by Navya
41 views
0 votes
1 answer

Why does "window is not defined" error occur in Next.js?

"window is not defined" error in Next.js ...READ MORE

answered Dec 4 in Web Development by navya
39 views
0 votes
0 answers

Why is my Node.js asynchronous function returning undefined when using async/await?

Why is my Node.js asynchronous function returning ...READ MORE

2 days ago in Web Development by Nidhi
• 4,840 points
11 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,947 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,473 views
+1 vote
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,460 points
1,463 views
0 votes
1 answer

Error: Failed to load resource: the server responded with a status of 404 (Not Found)

Your files are not under the JSP folder that's ...READ MORE

answered Dec 16, 2020 in Web Development by Gitika
• 65,770 points
88,067 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP