15
I've placed the following code in modules/news/article.php such that I would be able to mail the entire content of an article, but I get no errors and no email is sent (as far as I can tell). Yest $to, $from are defined. I took the code from modules/contact/index.php
$xoopsMailer =& getMailer();
$xoopsMailer->useMail();
$xoopsMailer->setToEmails("$to");
$xoopsMailer->setFromEmail("$from");
$xoopsMailer->setFromName("something");
$xoopsMailer->setSubject("test");
$xoopsMailer->setBody("test");
$xoopsMailer->send();