in your email.php component file, check if there's nothing after
closing tag (?>)
and FYI, there's an Email core component in Cake

On 13 fév, 11:04, searchmax <[EMAIL PROTECTED]> wrote:
> My code was working fine with sessions but when i added the email(phpmailer),
> I am getting the below error when i use email(phpmailer) component and
> checking the session
>
> If i comment var $components = array('Email');, everything works fine. Pls
> help me in this regard
>
> CODE
>
> <?php
> class ProductsController extends AppController
> {
>
>         var $helpers = array("html","Javascript");
>
>         var $components = array('Email');
>
>         function beforeFilter()
>     {
>         $this->checkSession();
>     }
> //rest of the code
>
> Error
> Warning: Cannot modify header information - headers already sent by (output
> started at
> C:\apache2triad\htdocs\cakeapp\app\controllers\components\email.php:116) in
> C:\apache2triad\htdocs\cakeapp\cake\libs\controller\controller.php on line
> 447
>
> --
> View this message in 
> context:http://www.nabble.com/Bug-while-using-PHPmailer-tp15452984p15452984.html
> Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
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