| Re: how can one send html mail using xoopsmail? |
| by highlander on 2007/4/23 14:07:40 great post ! helped me a lot today, thanx ! highlander |
| Re: how can one send html mail using xoopsmail? |
| by banesto on 2006/12/18 15:20:20 Great Thanks to YOU!
|
| Re: how can one send html mail using xoopsmail? |
| by kaotik on 2006/12/18 15:07:46 If you prefer you can use an html smarty template for your mail, here's a sample from one of my modules: le="color: #000000"><?php $mailer = getMailer(); $mailer->useMail(); $xoopsTpl->assign('sitename', $xoopsConfig['sitename']); $xoopsTpl->assign('lastname', $lastname); $content = $xoopsTpl->fetch("db:ks_send_mail.html"); $mailer->setBody($content); $mailer->setToEmails( array($email, $xoopsModuleConfig['mailorder']) ); $mailer->setFromEmail($xoopsModuleConfig['mailcontact']); $mailer->setFromName($xoopsModuleConfig['shopname']); $mailer->setSubject($subject); $mailer->multimailer->isHTML(true); if ($mailer->send()) { //send was successful } else { $this->ok=FALSE; $this->msg.="error in buildMail():".$mailer->getErrors()."<br />"; }
|
| Re: how can one send html mail using xoopsmail? |
| by kaotik on 2006/12/18 15:04:08 le="color: #000000"><?php [color=CC6600]$xoopsMailer->multimailer->isHTML(true);[/color]
|
| Re: how can one send html mail using xoopsmail? |
| by banesto on 2006/12/18 13:31:24 I also tried to hack xoopsmailer.php and set headers there, but that didn't do a change.. |