cakephp emails not working -


my problem is:

in controller have:

var $components = array('email');

the method send emails looks this:

function send_emails() {   $this->email->from    = 'somebody <somebody@example.com>';   $this->email->to      = 'somebody else <myspamplace@centrum.cz>';   $this->email->subject = 'test';   $this->email->send('hello message body!');  } 

i using cake 1.3 , running on localhost apache 2.2.11 , php5. guys have idea why doesn't work?

when put

$this->email->delivery = 'debug'; 

in code, displays email info , seems ok.

do have ideas can reason why doesn't send email?

are sending windows server? if so, have setup mta in php ini? can send mail using mail() function?

if on windows , need mta, hmail great development, note many hosts reject mail local machine spam don't use on production without mx record, domain keys etc.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -