title: Send email using Nodemailer with GoDaddy hosted email
body: <p>I am trying to send an email using <code>nodemailer</code> and a custom email address configured through GoDaddy. Here is a screen shot of the "custom configurations" page in c-panel:
  <a href="https://i.stack.imgur.com/5AxyG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/5AxyG.png" alt="enter image description here"></a></p>
  
  <p>and my code:</p>
  
  <pre><code>const nodemailer = require('nodemailer');
  
  var transporter = nodemailer.createTransport({
    service: 'Godaddy',
    secureConnection: false,
    auth: {
      user: 'info@mywebsite.com',
      pass: 'mypassword'
    }
  });
  
  var mailOptions = {
    from: 'info@mywebsite.com',
    to: 'otheremail@gmail.com',
    subject: 'Sending Email using Node.js',
    text: 'That was easy!',
    html: '&lt;h1&gt;Welcome&lt;/h1&gt;&lt;p&gt;That was easy!&lt;/p&gt;'
  };
  
  transporter.sendMail(mailOptions, function(error, info){
    if (error) {
      console.log(error);
    } else {
      console.log('Email sent: ' + info.response);
    }
  });
  </code></pre>
  
  <p>and my error log:</p>
  
  <pre><code>{ Error: connect EHOSTUNREACH 173.201.192.101:25
      at Object.exports._errnoException (util.js:1012:11)
      at exports._exceptionWithHostPort (util.js:1035:20)
      at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1080:14)
      code: 'ECONNECTION',
      errno: 'EHOSTUNREACH',
      syscall: 'connect',
      address: '173.201.192.101',
      port: 25,
      command: 'CONN' }
  </code></pre>
  
  <p>I've tried changing the port number, making it secure vs non-ssl, using my website address as the host, and pretty much everything else I can think of. I have successfully sent an email from the godaddy email using one of the webmail clients. Has anyone else ever encountered this or have recommendations on things to try? </p>