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