Jump to content

Code Igniter not sending email using SMTP


surot526

Recommended Posts

$config = Array(

        'protocol' => 'smtp',

        'smtp_host' => 'ssl://smtp.gmail.com',

        'smtp_port' => '465',

        'smtp_user' => '[email protected]',

        'smtp_pass' => 'removed'

        );

 

but I can't send that email... It show error like this...

 

A PHP Error was encountered

 

Severity: Warning

 

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?)

 

Filename: libraries/Email.php

 

Line Number: 1673

A PHP Error was encountered

 

Severity: Warning

 

Message: fwrite(): supplied argument is not a valid stream resource

 

Filename: libraries/Email.php

 

Line Number: 1816

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.