{"action":"created","issue":{"url":"https://api.github.com/repos/hydroshare/hydroshare/issues/181","labels_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/181/comments","events_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/181/events","html_url":"https://github.com/hydroshare/hydroshare/issues/181","id":59150919,"number":181,"title":"Mail from developer setups","user":{"login":"ironfroggy","id":34982,"avatar_url":"https://avatars.githubusercontent.com/u/34982?v=3","gravatar_id":"","url":"https://api.github.com/users/ironfroggy","html_url":"https://github.com/ironfroggy","followers_url":"https://api.github.com/users/ironfroggy/followers","following_url":"https://api.github.com/users/ironfroggy/following{/other_user}","gists_url":"https://api.github.com/users/ironfroggy/gists{/gist_id}","starred_url":"https://api.github.com/users/ironfroggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ironfroggy/subscriptions","organizations_url":"https://api.github.com/users/ironfroggy/orgs","repos_url":"https://api.github.com/users/ironfroggy/repos","events_url":"https://api.github.com/users/ironfroggy/events{/privacy}","received_events_url":"https://api.github.com/users/ironfroggy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-26T21:58:58Z","updated_at":"2015-02-27T14:39:08Z","closed_at":null,"body":"Developer set ups should **not** be allowed to or configured by default to send outgoing mail. This is dangerous, especially as you gain real world users and run into problems that require tests on local versions of the database. Recommend disabling this and using a test email server locally when outgoing mail has to be captured."},"comment":{"url":"https://api.github.com/repos/hydroshare/hydroshare/issues/comments/76403950","html_url":"https://github.com/hydroshare/hydroshare/issues/181#issuecomment-76403950","issue_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/181","id":76403950,"user":{"login":"ironfroggy","id":34982,"avatar_url":"https://avatars.githubusercontent.com/u/34982?v=3","gravatar_id":"","url":"https://api.github.com/users/ironfroggy","html_url":"https://github.com/ironfroggy","followers_url":"https://api.github.com/users/ironfroggy/followers","following_url":"https://api.github.com/users/ironfroggy/following{/other_user}","gists_url":"https://api.github.com/users/ironfroggy/gists{/gist_id}","starred_url":"https://api.github.com/users/ironfroggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ironfroggy/subscriptions","organizations_url":"https://api.github.com/users/ironfroggy/orgs","repos_url":"https://api.github.com/users/ironfroggy/repos","events_url":"https://api.github.com/users/ironfroggy/events{/privacy}","received_events_url":"https://api.github.com/users/ironfroggy/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T14:39:08Z","updated_at":"2015-02-27T14:39:08Z","body":"I am just documenting a general practice. There are lots of ways to handle testing mail. We either use the test server (a SMTP server that comes with Python and outputs outgoing mail to the terminal for inspection) or a developer-only enabled middleware that reroutes all outgoing mail to the developers own address or a mailing list (this one is also used on staging environments).\r\n\r\nIf you never use a copy of the real world database on staging or developer environments, this is less of a concern, but doing so down the road may well come in handy for debugging a problem and if you ever decide to debug something like that it would pose a risk. This is why it is so common to just err on the side of caution and not let staging or developer environments send mail out to the real world unchecked."}}