1
MS-2001
News: submit.php v1.12
  • 2005/3/14 20:58

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


I want to recive a mail after someone posts a new news item.

so i opend submit.php and voila. it's already there:

le="color: #000000"><?php $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?

2
MS-2001
Re: News: submit.php v1.12
  • 2005/3/14 21:10

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


ok, i also removed the comment lines in admin/index.php v1.20 in line 590. but still no mail

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!