Hi Andrey, Perhaps you should google around a bit. Most examples for EmailComponent I've seen mention how you're supposed to be using templates instead of passing email content through send(). Cheers "бляпиздец ну лошара"
On Mar 6, 10:27 pm, Andrey Demenev <[EMAIL PROTECTED]> wrote: > Hi all > > I was trying Cake today, building a prototype application (with > 1.2.0.6311). Everything went pretty well until I wanted to send a > confirmation email to the user upon registration. > > In register action, I have a bunch of values, some submitted by the > user, and some generated (like account activation key). What I > expected from EmailComponent is ability to pass these values to a > template -- and was very surprised to see that is accepts email > content as text. > > Was was the intent for doing it in such way? I think this approach > adds nothing but an additional template level -- I need to use values > I have to generate email content, while this job naturally should be > done by template associated with EmailComponent. > > What I propose is to remove code from EmailComponent that joins lines > passed in array together. This way, one can pass pre-generated email > content to a template in a string or a bunch of values in an array --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
