title: Nodemailor can't sending emails on cross domains
body: <p>I am using nodemailor for sending emails with node and express application.</p>
  
  <p>issues : when i am sending emails on  cross domain for ex : i am using hostgator email server it was sending email on hosted emails only with hostgator , but while i am sending emails on Gmail it will return success </p>
  
  <pre><code>250 OK id=1hU5l2-000m0C-Lh 
  </code></pre>
  
  <p>but not getting emails.</p>
  
  <p>Note : getting success response but not receiving emails in case of cross domain</p>
  
  <pre><code>const nodemailer = require('nodemailer');
  const keys = require('../config/keys');
  const smtpTransport = require('nodemailer-smtp-transport');
  emailCredentaials = (data) =&gt; {
  
        var transporter = nodemailer.createTransport(smtpTransport ({
          host: 'my.hostgator.com',
          port: 465,
          secure:true,
          auth: {
              user: keys.email.emailUserName,
              pass: keys.email.emailPassword
            },
            tls: {
              // do not fail on invalid certs
              rejectUnauthorized: false
            }  
          }));
      var mailOptions = {
          from: keys.email.emailUserName,
          to: data.email,
          subject: 'Demo account credentials',
          html: '&lt;h3&gt;Please Follow the link to login : '
              + keys.emailLinks.accountCredentailLink + '&lt;h3&gt;' + '&lt;br&gt;Useraname &amp;nbsp;&amp;nbsp; : &amp;nbsp;&amp;nbsp;' + data.email + '&lt;/br&gt;&lt;br&gt; Password &amp;nbsp;&amp;nbsp; : &amp;nbsp;&amp;nbsp;' + data.password + '&lt;/br&gt;'
      };
  
      transporter.sendMail(mailOptions, function (error, info) {
          if (error) {
              console.log("***********" + error);
          } else {
              console.log('*********Email sent:********' + info.response);
          }
      });
  }
  module.exports = emailCredentaials;
  </code></pre>
  
  <p>I used above configuration for nodemailor . Thanks</p>