這樣問我也不曉得....
不然試試這個:
function send_now($email = "", $title = "", $content = "", $address = "", $name = "")
{
global $xoopsConfig, $xoopsDB, $xoopsModuleConfig;
$xoopsMailer = &getMailer();
$xoopsMailer->multimailer->ContentType = "text/html";
$xoopsMailer->addHeaders("MIME-Version: 1.0");
if (!empty($address)) {
$xoopsMailer->AddReplyTo($address, $name);
}
$msg = ($xoopsMailer->sendMail($email, $title, $content, $headers)) ? true : false;
return $msg;
}