Welcome Guest, Not a member yet? Register   Sign In
Problem with Gmail + CI + W7
#1

[eluser]bkarat[/eluser]
Hi !

I have a problem in sending mails through gmail. The seetings in email.php are given below. Similar code works in a XP machine without any problem.

$config['protocol']= "smtp";
$config['charset']= "iso-8859-1";
$config['smtp_host'] = 'ssl://smtp.gmail.com';
$config['smtp_user']= 'my email id';
$config['smtp_pass'] = 'my password';
$config['wordwrap']= "TRUE";
$config['smtp_port']= "465";
$config['mailtype']= "html";
$config['newline']= "\r\n";
$config['crlf']= "\r\n";


On Win 7, I am getting the following error:

Message: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.gmail.com:465 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?)

Could it be a problem with my machine or anything with Win 7 (I am using Win 7 Home Basic)?

Regards,
Bala
#2

[eluser]cahva[/eluser]
You need to have the openssl module in PHP in order to have SSL connections and you probably dont have it installed/enabled.
#3

[eluser]bkarat[/eluser]
Hi !

openssl is enabled in php.ini.

openssl folder and files exist under \php\extras folder.

Regards,
Bala




Theme © iAndrew 2016 - Forum software by © MyBB