{"action":"opened","issue":{"url":"https://api.github.com/repos/felixrieseberg/Ghost-Azure/issues/49","repository_url":"https://api.github.com/repos/felixrieseberg/Ghost-Azure","labels_url":"https://api.github.com/repos/felixrieseberg/Ghost-Azure/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/felixrieseberg/Ghost-Azure/issues/49/comments","events_url":"https://api.github.com/repos/felixrieseberg/Ghost-Azure/issues/49/events","html_url":"https://github.com/felixrieseberg/Ghost-Azure/issues/49","id":171837169,"number":49,"title":"Add mail.from in config.js","user":{"login":"aqahtani","id":8500165,"avatar_url":"https://avatars.githubusercontent.com/u/8500165?v=3","gravatar_id":"","url":"https://api.github.com/users/aqahtani","html_url":"https://github.com/aqahtani","followers_url":"https://api.github.com/users/aqahtani/followers","following_url":"https://api.github.com/users/aqahtani/following{/other_user}","gists_url":"https://api.github.com/users/aqahtani/gists{/gist_id}","starred_url":"https://api.github.com/users/aqahtani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aqahtani/subscriptions","organizations_url":"https://api.github.com/users/aqahtani/orgs","repos_url":"https://api.github.com/users/aqahtani/repos","events_url":"https://api.github.com/users/aqahtani/events{/privacy}","received_events_url":"https://api.github.com/users/aqahtani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-18T07:41:58Z","updated_at":"2016-08-18T07:41:58Z","closed_at":null,"body":"Hello,\r\nIt would be great if we can amend the email configuration so it can read `mail.from` from an environment variable.  Following the guide on [ghost mail setup](http://support.ghost.org/mail), we could have the following mail config block:\r\n\r\n    mail: {            \r\n        transport: 'SMTP',\r\n        from: process.env.emailFrom, // email from address\r\n        options: {\r\n             service: process.env.emailService,\r\n             auth: {\r\n                 user: process.env.emailUsername, // username\r\n                 pass: process.env.emailPassword  // password\r\n        }\r\n    }\r\n \r\nThis is very important if you would like to make sure that your emails go through trusted sending domains you have configured in your mail service."}}
{"actor":{"display_login":"aqahtani"}}