1
I want to recive a mail after someone posts a new news item.
so i opend submit.php and voila. it's already there:
$xoopsMailer =& getMailer();
$xoopsMailer->useMail();
$xoopsMailer->setToEmails($xoopsConfig['adminmail']);
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
$xoopsMailer->setFromName($xoopsConfig['sitename']);
$xoopsMailer->setSubject(_NW_NOTIFYSBJCT);
$body = _NW_NOTIFYMSG;
$body .= "nn"._NW_TITLE.": ".$story->title();
$body .= "n"._POSTEDBY.": ".XoopsUser::getUnameFromId($uid);
$body .= "n"._DATE.": ".formatTimestamp(time(), 'm', $xoopsConfig['default_TZ']);
$body .= "nn".XOOPS_URL.'/modules/news/admin/index.php?op=edit&storyid='.$result;
$xoopsMailer->setBody($body);
$xoopsMailer->send();
ok, thats what i found there. i just need to remove the commentlines.
but i dont get an email. why?