On Fri, Apr 4, 2008 at 8:04 AM, Kyle Decot <[EMAIL PROTECTED]> wrote: > > I have created a contact form that sends out both an email to me, and > a confirmation email to the person who filled out the form. The > problem that is when the confirmation email gets sent out, it contains > the information from the first email. How can I prevent this? Thank > you as always for any help.
Looks like the new manual is missing a section that I wrote when I made the draft of the entry You probably need to call $this->Email->reset(); after the first send. http://cakeforge.org/plugins/wiki/index.php?EmailComponent&id=53&type=g I'll submit some changes for the docs today or tonight Sam D > > // Code here.... > > $this->Email->send("$body"); > > // set new to, and subject here... > > $this->Email->send("$thank_you_body"); > > > > -- -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/ http://blog.samdevore.com/cakephp-pages/i-cant-bake/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
