my bad, that's working:
$to =  'exampleem...@domain.com';
$this->Email->to = $to;

..typo mistake.

but when i include in my controller a config.php file:
<?php
define('EMAIL', 'exam...@domain.com');
?>

and try to use EMAIL to set the destination, it doesn't work :-(.
i have tried to set a $email variable with EMAIL and print it out in
view,
it shows the correct adddress, but when i use the EMAIL to set the
destination address for Email componnent it doesn't work.


On 16 Cze, 12:59, Dilip Godhani <dilip.godh...@gmail.com> wrote:
> Hello
> Use this
> its work may ne
>
> $to =  'exampleem...@domain.com';
> $this->Email->to = $to;
>
> Best luck
> BYe BYe
>
>
>
>
>
> On Wed, Jun 16, 2010 at 12:25 AM, Daniel Gbur <daniel.g...@gmail.com> wrote:
> > hi all,
>
> > i have a problem with Email compnent.
> > when i set the destination adress with a string:
>
> > $this->Email->to = 'exampleem...@domain.com';
>
> > it's working ok, but when i try to set the destination adress with a
> > variable:
>
> > $to =  'exampleem...@domain.com';
> > $this->Email->to = $to;
>
> > it doesn't work.
>
> > i can't find the reason why it's not working.
> > maybe someone have any idea?
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.c­om>For
> >  more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en
>
> --
> Dilip Godhani
> Jr Software Developer, Entourage Solutions
> e-mail: di...@entouragesolutions.com
>           dilip.godh...@gmail.com
> Web.:www.entouragesolutions.com
> m. 9913822582

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to