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
3,682 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,910 points

Related Questions In Web Development

0 votes
1 answer
0 votes
1 answer

NameError: name '_' is not defined

Hello, Just include this in you snippet: from django.utils.translation ...READ MORE

answered Aug 3, 2020 in Web Development by Niroj
• 82,880 points
2,394 views
0 votes
0 answers

TypeError: this.client.incrementMaxListeners is not a function

I'm making a command for my discord ...READ MORE

Dec 29, 2020 in Web Development by anonymous
• 120 points
626 views
0 votes
1 answer

Loading gif in jQuery ajax call is not showing

Create a div with your image. Make it ...READ MORE

answered Jun 27, 2022 in Web Development by rajatha
• 7,640 points
1,247 views
0 votes
0 answers

jQuery: Test if checkbox is NOT checked

I'm having trouble figuring this out. I ...READ MORE

Jun 29, 2022 in Web Development by gaurav
• 23,260 points
491 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,663 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,215 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,450 points
1,129 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,910 points
86,985 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