Hello, My assumptions : sf1.0 has a nice way to handle mail : easy to use and quickly understanble by everyone. Agree ?
This feature has been remove form sf1.1, as I suppose something was wrong with it. ( ... ?) I think sending emails should be very easy. $this = Controller $this->sendMail(array( 'mailClass' => 'sfMail', 'action' => 'module/mail', 'template' => 'my_template', 'layout' => ''email_layout', 'vars' => array( 'invoice' => $invoice, 'file' => new sfFile(), // can generate a unique identifier for the file ); )); of course some of this value could be guessed by the sendMail or defined in a yml file. As the sendMail is not welcome anymore in the controller, a mail class (let's say sfMailComponent) can register to listen [1] to the controller.method_not_found event, and retrieve 'sendMail' call. Thomas R. [1] http://www.symfony-project.org/book/1_1/17-Extending-Symfony#Built-In%20Events --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" 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-devs?hl=en -~----------~----~----~----~------~----~------~--~---
