Hi djiize,

Thanks a ton.... i have resolved that bug. Actually there is a space after
the (?>) closing tag and after removing that my code is working fine..
Thankyou very much for your help:-)

djiize wrote:
> 
> 
> 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.
> > 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Bug-while-using-PHPmailer-tp15452984p15459378.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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to