{"action":"closed","issue":{"url":"https://api.github.com/repos/1lobby/mailgun-js/issues/85","labels_url":"https://api.github.com/repos/1lobby/mailgun-js/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/1lobby/mailgun-js/issues/85/comments","events_url":"https://api.github.com/repos/1lobby/mailgun-js/issues/85/events","html_url":"https://github.com/1lobby/mailgun-js/issues/85","id":123182893,"number":85,"title":"Not able to send messages","user":{"login":"benrlodge","id":3275453,"avatar_url":"https://avatars.githubusercontent.com/u/3275453?v=3","gravatar_id":"","url":"https://api.github.com/users/benrlodge","html_url":"https://github.com/benrlodge","followers_url":"https://api.github.com/users/benrlodge/followers","following_url":"https://api.github.com/users/benrlodge/following{/other_user}","gists_url":"https://api.github.com/users/benrlodge/gists{/gist_id}","starred_url":"https://api.github.com/users/benrlodge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benrlodge/subscriptions","organizations_url":"https://api.github.com/users/benrlodge/orgs","repos_url":"https://api.github.com/users/benrlodge/repos","events_url":"https://api.github.com/users/benrlodge/events{/privacy}","received_events_url":"https://api.github.com/users/benrlodge/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-20T20:59:13Z","updated_at":"2015-12-22T01:53:06Z","closed_at":"2015-12-22T01:53:06Z","body":"I was able to successfully use mailgun-js to add someone to a mailing list, but I'm running into an error (404) sending a message. Sounds like the endpoint may not be configured properly? \r\n\r\nNote - I was able to send an email using the curl example in [the api docs](https://documentation.mailgun.com/api-sending.html#examples), so I don't think it's an issue with my DNS settings. \r\n\r\nCode used:\r\n```javascript\r\n\r\nvar api_key = MY_KEY;\r\nvar domain = 'https://api.mailgun.net/v3/WWW.MYSITE.COM';\r\nvar mailgun = require('mailgun-js')({apiKey: api_key, domain: domain});\r\n\r\n    var data = {\r\n      from: 'Me <me@me.com>',\r\n      to: 'example_email@something.com',\r\n      subject: 'Hello',\r\n      html: 'oh hi'\r\n    }\r\n\r\n    mailgun.messages().send(data, function (err, body) {\r\n        if (err) {\r\n          console.log(\"got an error: \", err);\r\n        }\r\n    });\r\n```\r\n\r\nerror: \r\n```\r\n127.0.0.1 - - [20/Dec/2015:20:52:16 +0000] \"POST /api/v1/subscribe HTTP/1.1\" 200 25 \"http://localhost:3000/\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36\"\r\ngot an error:  { [Error: <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\r\n<title>404 Not Found</title>\r\n<h1>Not Found</h1>\r\n<p>The requested URL was not found on the server.</p><p>If you entered the URL manually please check your spelling and try again.</p>\r\n] statusCode: 404 }\r\nMessage sent: 250 2.0.0 OK 1450644728 y129sm11413404qka.33 - gsmtp\r\n```\r\n"}}