How can I make email template in Zend Framework?
问题 I want to make email templates in Zend Framework. For example, <html> <body> Dear {$username$},<br> This is a invitation email sent by your {$friend$}.<br> Regards,<br> Admin </body> </html> I want to make this file, get it in Zend framework, set those parameters (username, friend) and then send the email. How can I do that? Does Zend support this? 回答1: Hi this is realy common. Create an view script like : /views/emails/template.phtml <body> <?php echo $this->name; ?> <h1>Welcome</h1> <?php