{"issue":{"created_at":"2011-11-21T14:21:01Z","state":"closed","updated_at":"2011-12-04T22:49:05Z","comments":1,"user":{"gravatar_id":"54fea6a5a84e2514b87340c856e37571","id":691952,"url":"https://api.github.com/users/jkimbo","avatar_url":"https://secure.gravatar.com/avatar/54fea6a5a84e2514b87340c856e37571?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jkimbo"},"body":"Emails, e.g. comment confirmation etc, should not be sent on a local development machine even if it can. However for testing purposes the output of the email should be logged somewhere for debugging. So I propose:\r\n\r\n* All emails go through a single function or class which will look at LOCAL definition as to whether it should try and send the email or not\r\n\t* It should take in the content, recipients etc\r\n* If on a local machine then a text file should be created somewhere with the contents of the email etc..\r\n\t* New folder emails?\r\n\t* Time, date and email subject in filename","assignee":{"gravatar_id":"54fea6a5a84e2514b87340c856e37571","id":691952,"url":"https://api.github.com/users/jkimbo","avatar_url":"https://secure.gravatar.com/avatar/54fea6a5a84e2514b87340c856e37571?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jkimbo"},"labels":[{"color":"02e10c","name":"Feature","url":"https://api.github.com/repos/FelixOnline/FelixOnline/labels/Feature"}],"id":2304996,"number":5,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Emailing on local machines","closed_at":"2011-12-04T21:25:22Z","html_url":"https://github.com/FelixOnline/FelixOnline/issues/5","url":"https://api.github.com/repos/FelixOnline/FelixOnline/issues/5","milestone":null},"action":"created","comment":{"created_at":"2011-12-04T22:49:04Z","updated_at":"2011-12-04T22:49:04Z","user":{"gravatar_id":"54fea6a5a84e2514b87340c856e37571","id":691952,"url":"https://api.github.com/users/jkimbo","avatar_url":"https://secure.gravatar.com/avatar/54fea6a5a84e2514b87340c856e37571?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jkimbo"},"body":"Email class logs emails if LOG_EMAILS is true or if its on a local machine.","id":3009559,"url":"https://api.github.com/repos/FelixOnline/FelixOnline/issues/comments/3009559"}}