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