{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/11250","repository_url":"https://api.github.com/repos/cakephp/cakephp","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/11250/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/11250/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/11250/events","html_url":"https://github.com/cakephp/cakephp/issues/11250","id":261269978,"number":11250,"title":"RFC Email Shell","user":{"login":"ajibarra","id":794722,"avatar_url":"https://avatars2.githubusercontent.com/u/794722?v=4","gravatar_id":"","url":"https://api.github.com/users/ajibarra","html_url":"https://github.com/ajibarra","followers_url":"https://api.github.com/users/ajibarra/followers","following_url":"https://api.github.com/users/ajibarra/following{/other_user}","gists_url":"https://api.github.com/users/ajibarra/gists{/gist_id}","starred_url":"https://api.github.com/users/ajibarra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajibarra/subscriptions","organizations_url":"https://api.github.com/users/ajibarra/orgs","repos_url":"https://api.github.com/users/ajibarra/repos","events_url":"https://api.github.com/users/ajibarra/events{/privacy}","received_events_url":"https://api.github.com/users/ajibarra/received_events","type":"User","site_admin":false},"labels":[{"id":60504144,"url":"https://api.github.com/repos/cakephp/cakephp/labels/Enhancement","name":"Enhancement","color":"bfe5bf","default":false},{"id":60504137,"url":"https://api.github.com/repos/cakephp/cakephp/labels/RFC","name":"RFC","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/2","html_url":"https://github.com/cakephp/cakephp/milestone/2","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/2/labels","id":453023,"number":2,"title":"Future","description":null,"creator":{"login":"lh-import","id":5175817,"avatar_url":"https://avatars0.githubusercontent.com/u/5175817?v=4","gravatar_id":"","url":"https://api.github.com/users/lh-import","html_url":"https://github.com/lh-import","followers_url":"https://api.github.com/users/lh-import/followers","following_url":"https://api.github.com/users/lh-import/following{/other_user}","gists_url":"https://api.github.com/users/lh-import/gists{/gist_id}","starred_url":"https://api.github.com/users/lh-import/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lh-import/subscriptions","organizations_url":"https://api.github.com/users/lh-import/orgs","repos_url":"https://api.github.com/users/lh-import/repos","events_url":"https://api.github.com/users/lh-import/events{/privacy}","received_events_url":"https://api.github.com/users/lh-import/received_events","type":"User","site_admin":false},"open_issues":37,"closed_issues":314,"state":"open","created_at":"2013-10-11T20:37:33Z","updated_at":"2017-09-28T10:37:35Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2017-09-28T10:32:00Z","updated_at":"2017-09-28T10:41:19Z","closed_at":null,"author_association":"MEMBER","body":"This is a (multiple allowed):\r\n\r\n* [ ] bug\r\n* [x] enhancement\r\n* [x] feature-discussion (RFC)\r\n\r\nCurrently there is no way to test that emails are working besides actually testing the feature in your app.\r\n\r\nI was working in an EmailShell that would allow to send test emails using specific configurations to a recipient.\r\n\r\nIt could also be useful to check if an email template is looking as expected specifying a template  and vars (not implemented yet).\r\n\r\nWhat I have now:\r\n\r\n```\r\n$ bin/cake email send --help\r\n\r\nWelcome to CakePHP v3.4.13 Console\r\n---------------------------------------------------------------\r\nEmail config : default\r\nEmail recipient:\r\n---------------------------------------------------------------\r\nSend test email.\r\n\r\nUsage:\r\ncake email send [-c default|another|another_one] [-h] [-m] [-q] [-s] [-v]\r\n\r\nOptions:\r\n\r\n--config, -c   Email Config (choices: default|another|another_one)\r\n--help, -h     Display this help.\r\n--message, -m  Email Content\r\n--quiet, -q    Enable quiet output.\r\n--subject, -s  Email Subject\r\n--verbose, -v  Enable verbose output.\r\n```\r\n\r\nTest sending:\r\n\r\n```\r\n$ bin/cake email send test@email.com\r\n\r\nWelcome to CakePHP v3.4.13 Console\r\n---------------------------------------------------------------\r\nEmail config : default\r\nEmail recipient: test@email.com\r\n---------------------------------------------------------------\r\nEmail message sent successfully\r\n\r\nHeaders\r\nFrom: you@localhost\r\nTo: test@email.com\r\nDate: Thu, 28 Sep 2017 05:42:40 +0000\r\nMessage-ID: <98f6824403a54eed9e2d90fdd708e8f1@ranita.local>\r\nSubject: Test email\r\nMIME-Version: 1.0\r\nContent-Type: text/plain; charset=UTF-8\r\nContent-Transfer-Encoding: 8bit\r\n\r\nMessage\r\nThis is a test email\r\n```\r\n\r\nI think it would be good to include it as a core feature but it would be a plugin as well of course. I would like to know your thoughts.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/332798287","html_url":"https://github.com/cakephp/cakephp/issues/11250#issuecomment-332798287","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/11250","id":332798287,"user":{"login":"steinkel","id":151761,"avatar_url":"https://avatars3.githubusercontent.com/u/151761?v=4","gravatar_id":"","url":"https://api.github.com/users/steinkel","html_url":"https://github.com/steinkel","followers_url":"https://api.github.com/users/steinkel/followers","following_url":"https://api.github.com/users/steinkel/following{/other_user}","gists_url":"https://api.github.com/users/steinkel/gists{/gist_id}","starred_url":"https://api.github.com/users/steinkel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steinkel/subscriptions","organizations_url":"https://api.github.com/users/steinkel/orgs","repos_url":"https://api.github.com/users/steinkel/repos","events_url":"https://api.github.com/users/steinkel/events{/privacy}","received_events_url":"https://api.github.com/users/steinkel/received_events","type":"User","site_admin":false},"created_at":"2017-09-28T10:41:19Z","updated_at":"2017-09-28T10:41:19Z","author_association":"MEMBER","body":"Accidentaly: yes if you type the required target email incorrectly\r\nAbused: yes, but also I could use bin/cake console for the same purpose..."}}
{"actor":{"display_login":"steinkel"}}