HI!
I come again with this mail, and i would like to ask several things, even i
know that this not a dev problem

1) i need to send i18n emails
2) i need to set up some several custom variables
3) i want to use 2 layouts (html + text ), and i want to be outside the
class (let's say in a component)
4) it would like to have to have all the system email send logic in one
place.

An example would be, let's say a forgot password system.

for this kind of system, i need to send the raw generated password as
setPassword method in sfGuard already combines the password with the salt

Also i would need to insert some extra parameters for example: username, or
other stuff
all the email should be multipart with some images and fully i18n.
I haven't been able to find an example in this as fabien pointed.

Thanks in advance !
Alecs

On Mon, Nov 2, 2009 at 3:41 PM, Fabien Potencier <
[email protected]> wrote:

>
>
> Alexandru-Emil Lupu wrote:
> > Hi!
> > i have a question about the new sf 1.3 getMailer method ... i guess it
> > would be better to be inserted into sfComponents as sfActions extends
> > sfComponents.
> >
> > I do think that is not in the right place, because i have met a problem.
> >
> > 1) had several emails to send form different actions of my project, so i
> > have decided to move all the mail actions to a new module called Emails.
> > 2) I have created a new "component" and i have inserted there the code
> > that i had for emails, to be much easier to access from other modules by
> > using $this->getComponent()
> > 3) After a short  while i have noticed that i need to pass a sfActions
> > instance to the component just to be sure that i have access to the
> > getMailer method ...
> >
> > maybe i have done something wrong by moving all the email actions into
> > the component, but it was the single way that i have seen at the moment
> > not to Repeat myself ...
>
> If you have a lot of emails, create classes for them that extend
> Swift_Message. That way, it is then a matter of create the right message:
>
> $this->getMailer()->send(new ConfirmationMessage($user));
>
> Fabien
>
> >
> > I dunno ... What is your opinion ?
> >
> > Alecs
> >
> > --
> > As programmers create bigger & better idiot proof programs, so the
> > universe creates bigger & better idiots!
> > I am on web:  http://www.alecslupu.ro/
> > I am on twitter: http://twitter.com/alecslupu
> > I am on linkedIn: http://www.linkedin.com/in/alecslupu
> > Tel: (+4)0748.543.798
> >
> >
> > >
>
> --~--~---------~--~----~------------~-------~--~----~
> 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]<symfony-devs%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>


-- 
Have a nice day!
Alecs

As programmers create bigger & better idiot proof programs, so the universe
creates bigger & better idiots!
I am on web:  http://www.alecslupu.ro/
I am on twitter: http://twitter.com/alecslupu
I am on linkedIn: http://www.linkedin.com/in/alecslupu
Tel: (+4)0748.543.798

--

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.


Reply via email to