04-08-2010, 09:48 PM
[eluser]Garrisonx[/eluser]
Hi folks mi name is carlos... and this is mi 3rd day using codeigniter it seems really interesting and powerfull i'm really interested in learn this framework.
actually i was reading the video tutorial from nettuts.
http://net.tutsplus.com/videos/screencas...tch-day-3/
sending email with codeigniter
and everything was great
but when the program in the video compiles fine in mi computer apears a thousand errores that doesnt appear there i wonder if there is a special configuration for the email class or is something wrong in mi computer.
my constructor is fine
and mi index function is fine too
even my $config variable shows no mistake but when i start running the email methods
this is mi index function
and this are the errors
Filename: libraries/Email.php
Message: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.googmemail.com:465 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?)
Line Number: 1652
Message: fwrite(): supplied argument is not a valid stream resource Line Number: 1795 (6 times same error)
Message: fgets(): supplied argument is not a valid stream resource Line Number: 1818 (5 times same error)
am i missing something.... i think thaty maybe the class dont accept the $config variable and the methods could be exaclty the 11 errors
and then the big one...
the show_error debugger
but i think maybe this is because ssl ports change or something like that
Hi folks mi name is carlos... and this is mi 3rd day using codeigniter it seems really interesting and powerfull i'm really interested in learn this framework.
actually i was reading the video tutorial from nettuts.
http://net.tutsplus.com/videos/screencas...tch-day-3/
sending email with codeigniter
and everything was great

but when the program in the video compiles fine in mi computer apears a thousand errores that doesnt appear there i wonder if there is a special configuration for the email class or is something wrong in mi computer.
my constructor is fine
and mi index function is fine too
even my $config variable shows no mistake but when i start running the email methods
Code:
echo "Pagina para enviar emails";
/**
*
*/
$config = Array(
'protocol'=>'smtp',
'smtp_host'=>'ssl://smtp.googmemail.com',
'smtp_port'=>465,
'smtp_user'=>'[email protected]',
'smtp_pass'=>'mypass'
);
$this->load->library('email',$config);
$this->email->set_newline("\r\n");
$this->email->from('[email protected]','Garrison');
$this->email->to('[email protected]');
$this->email->subject('This is an Email test');
$this->email->message('This mail is working Great!!');
if($this->email->send()){
echo "Your mail was sent, Fool" ;
}
else{
show_error($this->email->print_debugger() );
}
this is mi index function
and this are the errors
Filename: libraries/Email.php
Message: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.googmemail.com:465 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?)
Line Number: 1652
Message: fwrite(): supplied argument is not a valid stream resource Line Number: 1795 (6 times same error)
Message: fgets(): supplied argument is not a valid stream resource Line Number: 1818 (5 times same error)
am i missing something.... i think thaty maybe the class dont accept the $config variable and the methods could be exaclty the 11 errors
and then the big one...
the show_error debugger
but i think maybe this is because ssl ports change or something like that