$mail = new My_Mail(My_Mail::PW_LOST);
$mail->bind($userData); // will replace the placeholders in the text
$mail->addTo(...);
$mail->send(); // will replace the placeholders in the text, renders the layout, Sends the mail.
$this->view->fullname = "John Abc";
$this->view->emaildata = $data //Possibly an array of data from the db
$bodyText = $this->view->render('emails/htmlemail.phtml')
$bodyHtml = $this->view->render('emails/textemail.phtml')
用四个空格前面加上你的代码的每一行,以便我们可以真正阅读它。实际上,另一种方式是使用 – Palladium 2012-07-26 15:47:22
。 – Palladium 2012-07-26 15:49:11
'table'是什么意思? – arkascha 2012-07-26 15:50:24