hi,

I'm using the 1.2 email component to send emails (well, duh!) and for
some reason it's always returning false, I can't for the life of me
work out why as it always sends the mail successfully, and no errors
are returned.

// controller code snippet
$this->Email->subject = 'my test subject';
$this->Email->replyTo = '[EMAIL PROTECTED]';
$this->Email->from = $data['email'];
$this->Email->template = 'enquiry';
$this->Email->sendAs = 'text';
$this->Email->charset = 'utf-8';
$this->Email->to = '[EMAIL PROTECTED]';

// try to send message
if ($this->Email->send())
{
        $this->set('form_success', true);
}

This isn't expected behaviour is it, so what's going wrong? I've
pasted the contents of pr($this->Email) after I've tried sending to
see if that helps shed some light on this here
http://bin.cakephp.org/view/447793295

Grateful for some advice here.

cheers,

Jon

-- 

jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to