I don't embed the form.. where should i put this function if I want that an email is sent when a new article is posted (in the backend)? And why it doesn't work into the form class using sfContext::getInstance(), and it works in an action using $this ?
@Richtermeister: I've never used eventdispatcher On 2 Lug, 15:25, Johannes <[email protected]> wrote: > doSave() is probably not the right place since it never gets called if > you embed the PostForm somewhere. > > Johannes > > On Jul 2, 3:12 pm, cosmy <[email protected]> wrote: > > > > > On 2 Lug, 05:58, pghoratiu <[email protected]> wrote: > > > > From the first one the actual send is missing: > > > > // send the email > > > $this->getMailer()->send($mail); > > > > gabriel > > > It still doesn't work.. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" 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/symfony-users?hl=en
