my bad, that's working:
$to = '[email protected]';
$this->Email->to = $to;
..typo mistake.
but when i include in my controller a config.php file:
<?php
define('EMAIL', '[email protected]');
?>
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 <[email protected]> wrote:
> Hello
> Use this
> its work may ne
>
> $to = '[email protected]';
> $this->Email->to = $to;
>
> Best luck
> BYe BYe
>
>
>
>
>
> On Wed, Jun 16, 2010 at 12:25 AM, Daniel Gbur <[email protected]> wrote:
> > hi all,
>
> > i have a problem with Email compnent.
> > when i set the destination adress with a string:
>
> > $this->Email->to = '[email protected]';
>
> > it's working ok, but when i try to set the destination adress with a
> > variable:
>
> > $to = '[email protected]';
> > $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 [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<cake-php%[email protected]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: [email protected]
> [email protected]
> 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 [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