|
From: David S. <Dav...@by...> - 2003-10-05 05:48:40
|
Haim, You can use the $admin_email variable that is set in the config.php file. Just add a call to the mail() function in suggestions.php like so: $suggestion_contents = 'foo'; // fill in with form contents mail( $admin_email, 'New suggestion', $suggestion_contents ); That should do the trick. When you're done, send the diff to Jake Albretsen. He can apply the patch in CVS. I'm not officially doing mug development right now. :) --Dave <quote who="Haim Dimer"> > Thanks for the reply! > > I was mentioning to a buddy of mine how cool it would be to have the > admins emailed every time there is something that needs to be approved. > What do you think about doing that? Which function can I call to email > the admins? Where should I put the call to it? > > > On Wednesday, October 1, 2003, at 10:03 PM, David Smith wrote: > >> You can set this on a per-user basis in the "My Alerts" section under >> "My >> Account". Currently, supported is notification for: >> >> New users >> New articles >> New announcements >> New screenshots >> New events. >> >> I do not believe that the admin is mailed automagically when a >> suggestion >> is posted, so you may have to add that yourself. Should be easy enough. >> >> --Dave >> >> <quote who="Haim Dimer"> >>> Good Deal! >>> >>> I remember in the first version, back when the software was not called >>> mug yet, there was a great feature that I find missing in the version >>> I >>> have today. It is the ability for the system to email the >>> administrators whenever a new member signs up or a new suggestion is >>> posted. >>> >>> Where should I look for this feature? >>> >>> On Wednesday, October 1, 2003, at 03:02 PM, David Smith wrote: >>> >>>> pong. >>>> >>>> <quote who="Haim Dimer"> >>>>> Just a test to see if the list is still alive >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> This sf.net email is sponsored by:ThinkGeek >>>> Welcome to geek heaven. >>>> http://thinkgeek.com/sf >>>> _______________________________________________ >>>> Mug-devel mailing list >>>> Mug...@li... >>>> https://lists.sourceforge.net/lists/listinfo/mug-devel >>>> >>>> >>> >>> Haim. >>> >>> -- >>> "poetry - cooking - eating - talking - singing - acting - working - >>> enjoying. >>> Because tapping on a glass sounds better than honking a horn." >>> >>> >>> >>> ------------------------------------------------------- >>> This sf.net email is sponsored by:ThinkGeek >>> Welcome to geek heaven. >>> http://thinkgeek.com/sf >>> _______________________________________________ >>> Mug-devel mailing list >>> Mug...@li... >>> https://lists.sourceforge.net/lists/listinfo/mug-devel >>> >> >> >> >> ------------------------------------------------------- >> This sf.net email is sponsored by:ThinkGeek >> Welcome to geek heaven. >> http://thinkgeek.com/sf >> _______________________________________________ >> Mug-devel mailing list >> Mug...@li... >> https://lists.sourceforge.net/lists/listinfo/mug-devel >> >> > > Haim. > > -- > "poetry - cooking - eating - talking - singing - acting - working - > enjoying. > Because tapping on a glass sounds better than honking a horn." > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Mug-devel mailing list > Mug...@li... > https://lists.sourceforge.net/lists/listinfo/mug-devel > |