{"action":"created","issue":{"url":"https://api.github.com/repos/directus/docs/issues/46","repository_url":"https://api.github.com/repos/directus/docs","labels_url":"https://api.github.com/repos/directus/docs/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/directus/docs/issues/46/comments","events_url":"https://api.github.com/repos/directus/docs/issues/46/events","html_url":"https://github.com/directus/docs/issues/46","id":376669756,"node_id":"MDU6SXNzdWUzNzY2Njk3NTY=","number":46,"title":"Send Mail public error","user":{"login":"minasvisual","id":7904806,"node_id":"MDQ6VXNlcjc5MDQ4MDY=","avatar_url":"https://avatars3.githubusercontent.com/u/7904806?v=4","gravatar_id":"","url":"https://api.github.com/users/minasvisual","html_url":"https://github.com/minasvisual","followers_url":"https://api.github.com/users/minasvisual/followers","following_url":"https://api.github.com/users/minasvisual/following{/other_user}","gists_url":"https://api.github.com/users/minasvisual/gists{/gist_id}","starred_url":"https://api.github.com/users/minasvisual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minasvisual/subscriptions","organizations_url":"https://api.github.com/users/minasvisual/orgs","repos_url":"https://api.github.com/users/minasvisual/repos","events_url":"https://api.github.com/users/minasvisual/events{/privacy}","received_events_url":"https://api.github.com/users/minasvisual/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-02T04:56:40Z","updated_at":"2018-11-02T21:50:37Z","closed_at":"2018-11-02T21:50:37Z","author_association":"NONE","body":"HI. \r\n\r\nWhen a try send email from frontend (with no login) an error (Address in mailbox given [] does not comply with RFC 2822, 3.6.2.), cause the function bellow not return user mail and name. I think need to find email on config file to set from smtp. \r\nI fixed set from manually.\r\nsrc/core/directus/Mail\r\n```\r\nprotected function getFrom()\r\n    {\r\n        /** @var Acl $acl */\r\n        $acl = $this->container->get('acl');\r\n\r\n        return [\r\n            $acl->getUserEmail() => $acl->getUserFullName()\r\n        ];\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/directus/docs/issues/comments/435519707","html_url":"https://github.com/directus/docs/issues/46#issuecomment-435519707","issue_url":"https://api.github.com/repos/directus/docs/issues/46","id":435519707,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTUxOTcwNw==","user":{"login":"WellingGuzman","id":1531291,"node_id":"MDQ6VXNlcjE1MzEyOTE=","avatar_url":"https://avatars1.githubusercontent.com/u/1531291?v=4","gravatar_id":"","url":"https://api.github.com/users/WellingGuzman","html_url":"https://github.com/WellingGuzman","followers_url":"https://api.github.com/users/WellingGuzman/followers","following_url":"https://api.github.com/users/WellingGuzman/following{/other_user}","gists_url":"https://api.github.com/users/WellingGuzman/gists{/gist_id}","starred_url":"https://api.github.com/users/WellingGuzman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WellingGuzman/subscriptions","organizations_url":"https://api.github.com/users/WellingGuzman/orgs","repos_url":"https://api.github.com/users/WellingGuzman/repos","events_url":"https://api.github.com/users/WellingGuzman/events{/privacy}","received_events_url":"https://api.github.com/users/WellingGuzman/received_events","type":"User","site_admin":false},"created_at":"2018-11-02T21:50:37Z","updated_at":"2018-11-02T21:50:37Z","author_association":"MEMBER","body":"Are you trying to send an email without being authenticated? Because the mail `/mail` endpoint must be used with an valid authenticated user.\r\n\r\nI open a ticket to throw an exception when a public request is made to the `/mail` endpoint. https://github.com/directus/api/issues/566"}}
{"actor":{"display_login":"WellingGuzman"}}