public function sendemail(){ $config = Array( \'protocol\' => \'smtp\', \'smtp_host\' => \'ssl://smtp.googlemail.com\', \'smtp_port\' => 465,
I had the same problem and I solved by using the postcast server. You can install it locally and use it.