Forum Moderators: coopster

Message Too Old, No Replies

Keeping track of php's mail function

         

Aleister

11:23 pm on Feb 28, 2005 (gmt 0)

10+ Year Member



I have several different php based online contact forms on my websites, and lately I have become more concerned about people exploting these to send out spam.

Is there some way to set it up where there is a log kept of everytime mail() is used within a php script, and which script it is coming from?

If not, any other suggestions on how I can monitor this would be appreciated.

ironik

11:50 pm on Feb 28, 2005 (gmt 0)

10+ Year Member



Try awstats. It interfaces with your servers logs and you can keep track of mail statistics coming in/out (and it's free).

[awstats.sourceforge.net...]

However, you should probably keep track of mail by writing a logging system... or if it gets alot of traffic maybe run some filtration on the content to make sure certain keywords aren't getting through.

Aleister

2:04 am on Mar 1, 2005 (gmt 0)

10+ Year Member



I have awstats installed, but I guess I do not have it setup to gather mail statistics.

I thought about modifying my php scripts to keep a log of their actions as well, but with the number and variety, I thought it might be best if there was a way for php to keep track of the calls to the function. There may not be.. I will keep looking.

Thanks.