{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/9768","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9768/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9768/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9768/events","html_url":"https://github.com/joomla/joomla-cms/issues/9768","id":146380656,"number":9768,"title":"Send Test Mail button - Ajax call has always smtpauth = 1","user":{"login":"anibalsanchez","id":385780,"avatar_url":"https://avatars.githubusercontent.com/u/385780?v=3","gravatar_id":"","url":"https://api.github.com/users/anibalsanchez","html_url":"https://github.com/anibalsanchez","followers_url":"https://api.github.com/users/anibalsanchez/followers","following_url":"https://api.github.com/users/anibalsanchez/following{/other_user}","gists_url":"https://api.github.com/users/anibalsanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/anibalsanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anibalsanchez/subscriptions","organizations_url":"https://api.github.com/users/anibalsanchez/orgs","repos_url":"https://api.github.com/users/anibalsanchez/repos","events_url":"https://api.github.com/users/anibalsanchez/events{/privacy}","received_events_url":"https://api.github.com/users/anibalsanchez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/No%20Code%20Attached%20Yet","name":"No Code Attached Yet","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-06T17:27:02Z","updated_at":"2016-04-06T17:40:44Z","closed_at":null,"body":"#### Steps to reproduce the issue\r\n\r\n1. Fill all SMTP fields in Mail Settings for a server that requires authentication\r\n2. But, **don't enable SMTP Authentication**\r\n\r\n#### Expected result\r\n\r\nMails are **not** sent via SMTP that requires authentication. Because, SMTP Authentication is not enabled.\r\n\r\n#### Actual result\r\n\r\nMails are sent via SMTP, even when SMTP Authentication is disabled.\r\n\r\n#### System information (as much as possible)\r\n\r\nAny browser\r\n\r\n#### Additional comments\r\n\r\nThe radio buton is simply queried but jQuery does not take into account that it is a radio button.\r\n\r\nFix: sendtestmail-uncompressed.js\r\n\r\njQuery(document).ready(function ($)\r\n{\r\n\t$('#sendtestmail').click(function ()\r\n\t{\r\n\t\tvar email_data = {\r\n\t\t\tsmtpauth  : $('input[name=\"jform[smtpauth]\"]:checked').val(),\r\n\t\t\tsmtpuser  : $('input[name=\"jform[smtpuser]\"]').val(),\r\n\t\t\tsmtppass  : $('input[name=\"jform[smtppass]\"]').val(),\r\n\t\t\tsmtphost  : $('input[name=\"jform[smtphost]\"]').val(),\r\n\t\t\tsmtpsecure: $('select[name=\"jform[smtpsecure]\"]').val(),\r\n\t\t\tsmtpport  : $('input[name=\"jform[smtpport]\"]').val(),\r\n\t\t\tmailfrom  : $('input[name=\"jform[mailfrom]\"]').val(),\r\n\t\t\tfromname  : $('input[name=\"jform[fromname]\"]').val(),\r\n\t\t\tmailer    : $('select[name=\"jform[mailer]\"]').val(),\r\n\t\t\tmailonline: $('input[name=\"jform[mailonline]\"]:checked').val()\r\n\t\t};\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/206482921","html_url":"https://github.com/joomla/joomla-cms/issues/9768#issuecomment-206482921","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9768","id":206482921,"user":{"login":"anibalsanchez","id":385780,"avatar_url":"https://avatars.githubusercontent.com/u/385780?v=3","gravatar_id":"","url":"https://api.github.com/users/anibalsanchez","html_url":"https://github.com/anibalsanchez","followers_url":"https://api.github.com/users/anibalsanchez/followers","following_url":"https://api.github.com/users/anibalsanchez/following{/other_user}","gists_url":"https://api.github.com/users/anibalsanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/anibalsanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anibalsanchez/subscriptions","organizations_url":"https://api.github.com/users/anibalsanchez/orgs","repos_url":"https://api.github.com/users/anibalsanchez/repos","events_url":"https://api.github.com/users/anibalsanchez/events{/privacy}","received_events_url":"https://api.github.com/users/anibalsanchez/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T17:40:44Z","updated_at":"2016-04-06T17:40:44Z","body":"Hi,\n\nI tested the fix the uncompressed file. What are the steps to generate the compressed version?\n<hr /><sub>This comment was created with the <a href=\"https://github.com/joomla/jissues\">J!Tracker Application</a> at <a href=\"https://issues.joomla.org/tracker/joomla-cms/9768\">issues.joomla.org/joomla-cms/9768</a>.</sub>"}}