title: Trying to send message with gunmail, error
body: <p>Tried following <a href="http://blog.mailgun.com/how-to-send-transactional-emails-in-a-nodejs-app-using-the-mailgun-api/" rel="nofollow">mailgun's nodejs tutorial</a>, but I get this error: </p>
  
  <pre><code>error  { [Error: &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"&gt;
  &lt;title&gt;404 Not Found&lt;/title&gt;
  &lt;h1&gt;Not Found&lt;/h1&gt;
  &lt;p&gt;The requested URL was not found on the server.&lt;/p&gt;&lt;p&gt;If you entered the URL manually please check your spelling and try again.&lt;/p&gt;
  ] statusCode: 404 }
  undefined
  </code></pre>
  
  <p>The code I'm using in the node server looks like this:</p>
  
  <pre><code>var express = require("express");
  var expressApp = express();
  var server = http.createServer(expressApp);
  
  //Port number for the server
  var portNum = process.env.PORT || 80;
  
  var Mailgun = require('mailgun-js');
  
  //get requests
  expressApp
      .get("/", function routeHandler(req, res) {
          res.sendFile(path.join(__dirname, "../client/index.html"));
  
          var api_key = 'key-00000000000000000000';
          var domain = "https://api.mailgun.net/v3/mydomain.com"; //I think the error must be here
          var mailgun = new Mailgun({apiKey: api_key, domain: domain});
  
          var data = {
              from: "me@mydomain.com", //I tried also with me@samples.mailgun.org which was in the example
  
              to: 'myemail@gmail.com',
              subject: 'Hello',
              text: 'Testing some Mailgun awesomness!'
          };
  
          mailgun.messages().send(data, function (err, body) {
              if (err) {
                  console.log("error ", err);
              }
  
              console.log(body);
          });
  
  
      })
  </code></pre>
  
  <p>...</p>
  
  <p>Please help I have been stuck at this way too much time, there's not that much documentation for node.js + mailgun</p>