Hi.
i got a unknown trouble with my app.
im trying to set a mail sender but i dont know why it does not send
any email, if somebody could help me i'ld really be thankful
i put my code below
function sendEmail(){
$this->Email->reset();
$this->log(__CLASS__.':'.__FUNCTION__.':'.__LINE__."
email",LOG_DEBUG);
$this->Email->smtpOptions = array(
'port'=>'465',
'timeout'=>'30',
'host' =>'smtp.gmail.com',
'username'=>'gmail [email protected]',
'password'=>'my password');
$this->Email->sendAs = 'html';
$this->Email->delivery = 'smtp';
$this->Email->to = "gmail [email protected]";
$this->Email->subject = 'Welcome to our CakePHP';
$this->Email->from = 'geneller naranjo <gmail [email protected]>';
$this->Email->sendAs = 'html';
if($this->Email->send()){
$this->log(__CLASS__.':'.__FUNCTION__.':'.__LINE__."
NOerrores",LOG_DEBUG);
}
$this->log(__CLASS__.':'.__FUNCTION__.':'.__LINE__."
errores",LOG_DEBUG);
$this->log($this->Email->smtpError,LOG_DEBUG);
}
when i look the log, i see this:
2010-02-19 13:55:55 Debug: RegistersController:sendEmail:68 errores
that's why i confirm that its not sendind and discard the gmail smtp
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en