{"action":"closed","issue":{"url":"https://api.github.com/repos/TryGhost/Ghost/issues/7604","repository_url":"https://api.github.com/repos/TryGhost/Ghost","labels_url":"https://api.github.com/repos/TryGhost/Ghost/issues/7604/labels{/name}","comments_url":"https://api.github.com/repos/TryGhost/Ghost/issues/7604/comments","events_url":"https://api.github.com/repos/TryGhost/Ghost/issues/7604/events","html_url":"https://github.com/TryGhost/Ghost/issues/7604","id":184280448,"number":7604,"title":"Sending envitation via SMTP doesn't work","user":{"login":"evil-shrike","id":1203230,"avatar_url":"https://avatars.githubusercontent.com/u/1203230?v=3","gravatar_id":"","url":"https://api.github.com/users/evil-shrike","html_url":"https://github.com/evil-shrike","followers_url":"https://api.github.com/users/evil-shrike/followers","following_url":"https://api.github.com/users/evil-shrike/following{/other_user}","gists_url":"https://api.github.com/users/evil-shrike/gists{/gist_id}","starred_url":"https://api.github.com/users/evil-shrike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evil-shrike/subscriptions","organizations_url":"https://api.github.com/users/evil-shrike/orgs","repos_url":"https://api.github.com/users/evil-shrike/repos","events_url":"https://api.github.com/users/evil-shrike/events{/privacy}","received_events_url":"https://api.github.com/users/evil-shrike/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-20T16:38:31Z","updated_at":"2016-10-20T16:43:00Z","closed_at":"2016-10-20T16:43:00Z","body":"### Issue Summary\r\n\r\nI have simple mail config:\r\n```\r\n        mail: {\r\n            transport: 'SMTP',\r\n            options: {\r\n                port: 25,\r\n                host: 'smtp.lab.example.org',\r\n                secure: false,\r\n                from: 'robot@example.org'\r\n            }\r\n        },\r\n```\r\n\r\nI checked that the config is correct with a test script using nodemailer directly:\r\n\r\n```\r\nvar nodemailer = require('nodemailer');\r\nvar transport = {\r\n                port: 25,\r\n                host: 'smtp.lab.example.org',\r\n                secure: false,\r\n                from: 'robot@example.org'\r\n            };\r\nvar transporter = nodemailer.createTransport(\"SMTP\", transport);\r\nfunction sendMail() {\r\n\tvar mailOptions = {\r\n\t    from: 'robot@example.org', \t// sender address\r\n\t    to: 'user@example.org', \t// list of receivers\r\n\t    subject: 'test',\t\t// Subject line\r\n\t    text: 'Hello world', \t// plaintext body\r\n\t    html: '<b>Hello world</b>' // html body\r\n\t};\r\n\ttransporter.sendMail(mailOptions, function(error, info){\r\n\t    if(error){\r\n        \treturn console.log(error);\r\n\t    }\r\n\t    console.log('Message sent: ' + info.response);\r\n\t});\r\n}\r\nsendMail();\r\n```\r\n\r\nThis script sends me a mail.\r\nSo the config is correct.\r\nBut Ghost is not sending anything. It reports no errors, saying \"Invitation sent\" but nothing happens.\r\n\r\n### Steps to Reproduce\r\n\r\n1. Just send an invitation\r\n\r\n### Technical details:\r\n\r\n* Ghost Version: 0.11.2\r\n* Node Version: 6.9.1\r\n* Browser/OS: Windows 2008 R2 Std SP1\r\n\r\nNode is running via iisnode under IIS. IIS AppPool is running under NetworkService account. \r\n\r\nIs it expected to work? For some reason the doc doesn't contain info on direct SMTP usage. \r\nIf it should how can I debug what is going on?"}}
{"actor":{"display_login":"kevinansfield"}}