Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 9th, 2012  |  syntax: None  |  size: 0.71 KB  |  hits: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. how to input table html to php email code
  2. $mail = new My_Mail(My_Mail::PW_LOST);
  3.  
  4. $mail->bind($userData); // will replace the placeholders in the text
  5.  
  6. $mail->addTo(...);
  7.  
  8. $mail->send(); // will replace the placeholders in the text, renders the layout, Sends the mail.
  9.        
  10. $mail = new Zend_Mail();
  11. $mail->setBodyText($bodyText);
  12. $mail->setBodyHtml($bodyHtml);
  13. $mail->setFrom($senderAddress, $senderLabel);
  14. $mail->addTo($recipientAddress, $recipientLabel);
  15. $mail->setSubject($subject);
  16. $mail->send();
  17.        
  18. $this->view->fullname = "John Abc";
  19. $this->view->emaildata = $data //Possibly an array of data from the db
  20. $bodyText = $this->view->render('emails/htmlemail.phtml')
  21. $bodyHtml = $this->view->render('emails/textemail.phtml')