2
You should use it like this:
$xoopsMailer =& getMailer(); //Get mailer object
$xoopsMailer->useMail(); // Set it to use email (as opposed to PM)
$xoopsMailer->setToEmails($to);
$xoopsMailer->setFromEmail($from);
$xoopsMailer->setFromName("Sender's name");
$xoopsMailer->setBody($message);
$xoopsMailer->setSubject($subject);
if ($xoopsMailer->send()) {
//send was successful
}
else {
//send not successful, use
//$xoopsMailer->getErrors() to get a string of messages
}
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."
Cusix Software