Monday, August 22, 2011

CAKEPHP Email component not working in live server.. how to get the error response why that mail is not going

I using cakephp email component. In my live server $this->Email-
>send() return success. but mail is not receiving. what is the
problem?? i need to find whats the error ?

$this->Email->from = Mysitename <no-reply@mysite.com>;
$this->Email->to = sample@gmail.com
$this->Email->subject = "This is test";
$this->Email->template = 'template_name';
$this->Email->sendAs = 'html';

ob_start();
if($this->Email->send())
{
$this->log(' Mail Success');
}
else
{
$this->log('Something broke in mail');
}
ob_end_clean();

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: