{"action":"created","issue":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/3738","labels_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/3738/labels{/name}","comments_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/3738/comments","events_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/3738/events","html_url":"https://github.com/bcit-ci/CodeIgniter/issues/3738","id":66609599,"number":3738,"title":"Email library bug ?","user":{"login":"ghost","id":10137,"avatar_url":"https://avatars.githubusercontent.com/u/10137?v=3","gravatar_id":"","url":"https://api.github.com/users/ghost","html_url":"https://github.com/ghost","followers_url":"https://api.github.com/users/ghost/followers","following_url":"https://api.github.com/users/ghost/following{/other_user}","gists_url":"https://api.github.com/users/ghost/gists{/gist_id}","starred_url":"https://api.github.com/users/ghost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghost/subscriptions","organizations_url":"https://api.github.com/users/ghost/orgs","repos_url":"https://api.github.com/users/ghost/repos","events_url":"https://api.github.com/users/ghost/events{/privacy}","received_events_url":"https://api.github.com/users/ghost/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-04-06T13:42:42Z","updated_at":"2015-06-15T18:19:24Z","closed_at":null,"body":"2 days ago i used email library to send email from CI based web app. As i read on CI 3 docs, nothing different in methodology from CI 2.x to use email class. But the email never sent to recipient address, and the page keep loading. Even i used configuration & sample code from documentation it keep fail to sent email. I though my email server configuration was wrong, i try different config, but still no luck. \r\n\r\nSo i test install PHPMailer to CI, and email just sent right away without any problem. Is anyone see this as a bug or something? On CI 2.x i have meet no problem using email library from CI.\r\n\r\nThanks in advance. "},"comment":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/comments/112160247","html_url":"https://github.com/bcit-ci/CodeIgniter/issues/3738#issuecomment-112160247","issue_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/3738","id":112160247,"user":{"login":"mwhitneysdsu","id":1537529,"avatar_url":"https://avatars.githubusercontent.com/u/1537529?v=3","gravatar_id":"","url":"https://api.github.com/users/mwhitneysdsu","html_url":"https://github.com/mwhitneysdsu","followers_url":"https://api.github.com/users/mwhitneysdsu/followers","following_url":"https://api.github.com/users/mwhitneysdsu/following{/other_user}","gists_url":"https://api.github.com/users/mwhitneysdsu/gists{/gist_id}","starred_url":"https://api.github.com/users/mwhitneysdsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwhitneysdsu/subscriptions","organizations_url":"https://api.github.com/users/mwhitneysdsu/orgs","repos_url":"https://api.github.com/users/mwhitneysdsu/repos","events_url":"https://api.github.com/users/mwhitneysdsu/events{/privacy}","received_events_url":"https://api.github.com/users/mwhitneysdsu/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T18:19:24Z","updated_at":"2015-06-15T18:19:24Z","body":"This is what I'm seeing if I use this code in place of the code listed by @bvrignaud above:\r\n\r\n```php\r\n        $tempVal = $this->_smtp_connect();\r\n        if (! $tempVal) {\r\n            log_message('error', '_smtp_connect: ' . $this->print_debugger(array()));\r\n        }\r\n        $tempVal = $this->_smtp_authenticate();\r\n        if (! $tempVal) {\r\n            log_message('error', '_smtp_authenticate: ' . $this->print_debugger(array()));\r\n        }\r\n```\r\n\r\n```\r\n_smtp_authenticate: 220 For xxxx Use Only\r\n<br /><pre>hello: 250-xxxx.xxxx.xxx Hello xxxxx.xxxx.xxx [###.###.###.###], pleased to meet you\r\n250-SIZE 500000000\r\n250-STARTTLS\r\n250-PIPELINING\r\n250-8BITMIME\r\n250 HELP\r\n</pre>Failed to authenticate password. Error: 504 Unrecognized authentication type\r\n<br />\r\n```\r\n\r\nThis is after initializing the library with:\r\n\r\n```php\r\n$this->ci->email->initialize(\r\n    array(\r\n        'mailpath' => '/usr/sbin/sendmail',\r\n        'mailtype' => 'text',\r\n        'protocol' => 'smtp',\r\n        'sender_email' => 'sender@xxxx.xxxx.xxx',\r\n        'smtp_host' => 'xxxx.xxxx.xxx',\r\n        'smtp_pass' => 'smtp_password_here',\r\n        'smtp_port' => 25,\r\n        'smtp_timeout' => 30,\r\n        'smtp_user' => 'sender@xxxx.xxxx.xxx',\r\n    )\r\n);\r\n```\r\n"}}