{"action":"opened","issue":{"url":"https://api.github.com/repos/BOINC/boinc-ng/issues/596","labels_url":"https://api.github.com/repos/BOINC/boinc-ng/issues/596/labels{/name}","comments_url":"https://api.github.com/repos/BOINC/boinc-ng/issues/596/comments","events_url":"https://api.github.com/repos/BOINC/boinc-ng/issues/596/events","html_url":"https://github.com/BOINC/boinc-ng/issues/596","id":56463791,"number":596,"title":"Inconsistency between EMAIL_FROM and EMAIL_FROM_NAME in email.inc","user":{"login":"romw","id":985772,"avatar_url":"https://avatars.githubusercontent.com/u/985772?v=3","gravatar_id":"","url":"https://api.github.com/users/romw","html_url":"https://github.com/romw","followers_url":"https://api.github.com/users/romw/followers","following_url":"https://api.github.com/users/romw/following{/other_user}","gists_url":"https://api.github.com/users/romw/gists{/gist_id}","starred_url":"https://api.github.com/users/romw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romw/subscriptions","organizations_url":"https://api.github.com/users/romw/orgs","repos_url":"https://api.github.com/users/romw/repos","events_url":"https://api.github.com/users/romw/events{/privacy}","received_events_url":"https://api.github.com/users/romw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BOINC/boinc-ng/labels/C:%20Web%20-%20Project","name":"C: Web - Project","color":"0000aa"},{"url":"https://api.github.com/repos/BOINC/boinc-ng/labels/P:%20Trivial","name":"P: Trivial","color":"dce7ff"},{"url":"https://api.github.com/repos/BOINC/boinc-ng/labels/R:%20fixed","name":"R: fixed","color":"55ff55"},{"url":"https://api.github.com/repos/BOINC/boinc-ng/labels/T:%20Defect","name":"T: Defect","color":"cccccc"}],"state":"open","locked":false,"assignee":{"login":"davidpanderson","id":985729,"avatar_url":"https://avatars.githubusercontent.com/u/985729?v=3","gravatar_id":"","url":"https://api.github.com/users/davidpanderson","html_url":"https://github.com/davidpanderson","followers_url":"https://api.github.com/users/davidpanderson/followers","following_url":"https://api.github.com/users/davidpanderson/following{/other_user}","gists_url":"https://api.github.com/users/davidpanderson/gists{/gist_id}","starred_url":"https://api.github.com/users/davidpanderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidpanderson/subscriptions","organizations_url":"https://api.github.com/users/davidpanderson/orgs","repos_url":"https://api.github.com/users/davidpanderson/repos","events_url":"https://api.github.com/users/davidpanderson/events{/privacy}","received_events_url":"https://api.github.com/users/davidpanderson/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/BOINC/boinc-ng/milestones/3","labels_url":"https://api.github.com/repos/BOINC/boinc-ng/milestones/3/labels","id":964209,"number":3,"title":"Undetermined","description":"Features for this release:\r\n\r\n * WIN: Streamline installer for mass deployments using either Installshield or WiX\r\n","creator":{"login":"romw","id":985772,"avatar_url":"https://avatars.githubusercontent.com/u/985772?v=3","gravatar_id":"","url":"https://api.github.com/users/romw","html_url":"https://github.com/romw","followers_url":"https://api.github.com/users/romw/followers","following_url":"https://api.github.com/users/romw/following{/other_user}","gists_url":"https://api.github.com/users/romw/gists{/gist_id}","starred_url":"https://api.github.com/users/romw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romw/subscriptions","organizations_url":"https://api.github.com/users/romw/orgs","repos_url":"https://api.github.com/users/romw/repos","events_url":"https://api.github.com/users/romw/events{/privacy}","received_events_url":"https://api.github.com/users/romw/received_events","type":"User","site_admin":false},"open_issues":80,"closed_issues":378,"state":"open","created_at":"2015-02-03T19:47:35Z","updated_at":"2015-02-04T00:50:22Z","due_on":"1970-01-01T00:00:00Z","closed_at":null},"comments":0,"created_at":"2015-02-04T00:50:22Z","updated_at":"2015-02-04T00:50:22Z","closed_at":null,"body":"**Reported by tstrunk on 8 Nov 38274130 15:33 UTC**\nIn [the documentation states:\r\n```\r\nEMAIL_FROM \r\n    'from' address for emails \r\nEMAIL_FROM_NAME \r\n    'from' name for emails \r\n```\r\n\r\nPHP-Mailer respects these options; the internal php mail command does not: [[br](wiki:WebConfig])]\r\nemail.inc (49-50):\r\n```\r\n        if (defined('EMAIL_FROM')) {\r\n            $headers = \"From: \". EMAIL_FROM;\r\n```\r\nshould be:\r\n```\r\n        if ( defined('EMAIL_FROM') && defined('EMAIL_FROM_NAME') ) {\r\n            $headers = \"From: \".EMAIL_FROM_NAME.\"@\".EMAIL_FROM;\r\n```\r\n\r\nOtherwise by specifying for example on host: \"hostnumber1.com\":[- \"hostnumber2.de\" [[br]([br]]\r\nEMAIL_FROM)]\r\nEMAIL_FROM_NAME - \"correct_username\" [[br]]\r\n\r\na password retrieval mail would be mailed to:\r\nhostnumber2.de@hostnumber1.com\r\n\r\nRevision is 14746\n\nMigrated-From: http://boinc.berkeley.edu/trac/ticket/618"}}