or you can use the swToolboxPlugin which almost work like sf1.0 which more
options. Just read this post and the related post:


   - http://rabaix.net/en/articles/2009/01/26/send-mail-with-symfony-1-2
   -
   
http://trac.symfony-project.org/browser/plugins/swToolboxPlugin/sf1.2/trunk/doc/03-sendMail.txt



On Mon, Mar 30, 2009 at 6:23 PM, naholyr <[email protected]> wrote:

>
> What version are you using ? This way of sending mails has disappeared
> in 1.2, you're now adviced to use a tierce mailer (Swift for example).
>
>
> For 1.2 users I wrote nahoMailPlugin. You'll then change your action
> into a component, and your code would be rewritten like this
> (information of subject and recipient is moved from the mailer action
> to the nahoMail call) :
>
> nahoMail::send($subject,
>  nahoMail::getBody('component', 'mail/SendPasswordRemind'),
>  $recipient);
>
>
>
> On 30 mar, 17:53, xhe <[email protected]> wrote:
> > This question seemed simple, but I can not find answer, can you shed
> > some light?
> >
> > I want to put all the email handling into one module and then use one
> > function call to call that email and go back to the calling point.
> >
> > In the past I can easily use $this->sendEmail("module","action"), that
> > is a very easy way. Now, in sfMail, we no longer have sfMailer, so I
> > used swiftmailer instead.
> >
> > So in the calling point, I used this way:
> >
> >  $controller = $this->getContext()->getInstance()->getController();
> > $controller->sendEmail('mail', 'SendPasswordRemind');
> > $this->renderText("done");
> >
> > and then in the mail module, I set an action sendPasswordRemind to
> > send email, in which I used swiftmailer.
> >
> > But I don't know why it just suddenly failed, all the actions are not
> > performed in sendPasswordRemind action, but if I remove this action,
> > symfony will through error, telling that module/aciton does not exist.
> >
> > So can you tell me how you organize your emails into one module and
> > how do you call them?
> >
> > Thanks.
> >
>


-- 
Thomas Rabaix
http://rabaix.net

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to