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:

$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

Who's Online

344 user(s) are online (54 user(s) are browsing Support Forums)


Members: 0


Guests: 344


more...

Donat-O-Meter

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

Latest GitHub Commits