When running the app in localhost, I use a simple way to see how the
emails will look like.
Try inserting this line:
$this->Email->delivery = ife(Configure::read('debug')
==0,'mail','debug');
And after the send() call, include this line:
$this->Session->setFlash(ife(Configure::read('debug')==0,__("Check
your email!",true),pr($this->Session->read('Message.email'))));
If the debug setting is higher than 0, instead of sending the actual
email, it will show the email in the flash message (provided that you
included the flash message somewhere in your layout)
Hope this helps
On Jan 14, 6:09 am, Miles J <[email protected]> wrote:
> Its probably because your on localhost. If you dont have a mail server
> setup as well on your localhost, no emails will be sent.
>
> I usually have to test my contact once the site goes live.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---