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
477 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.

answered Dec 24, 2020 by Gitika
• 65,930 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,780 points
896 views
0 votes
0 answers

TypeError: this.client.incrementMaxListeners is not a function

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

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

What is the difference between span and div?

The div should be used to wrap sections of ...READ MORE

answered Jan 16, 2020 in Web Development by Niraj

edited Jan 21, 2020 by Niroj 1,768 views
+1 vote
1 answer

What is the relationship between angularjs Scope with controller/view?

Let us consider the below block: <div ng-controller="emp"> ...READ MORE

answered Jan 20, 2020 in Web Development by Niroj
• 82,780 points

edited Jan 21, 2020 by Niroj 257 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,830 points
636 views
0 votes
1 answer
0 votes
1 answer

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

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,440 points
472 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,930 points
10,905 views