$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