Re: Battle of Spam

From: Date: Mon, 07 Jun 2010 20:56:51 +0000
Subject: Re: Battle of Spam
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-305928@lists.php.net to get a copy of this message
Brian Dunning wrote:
Agreed that's a great overall strategy but what I need now is a way to track down the offending script, within the next few days if possible. On Jun 7, 2010, at 1:35 PM, Jim Lucas wrote:
Change all the forms to use a single processing script and then you won't have such a big problem tracking down the "information processing error/insecurity" that you are having.
Create a user space function called mail_filtered() that accepts all the parameters that the usual mail function does. Then change all occurrences of the mail() function call to mail_filtered() and for each email sent, create a log of it and a shallow copy of debug_backtrace() so you can see where it originated. I always use some kind of mail lib that allows me to debug emails by adding extra information and redirecting the address during dev. Cheers, Rob. -- E-Mail Disclaimer: Information contained in this message and any attached documents is considered confidential and legally protected. This message is intended solely for the addressee(s). Disclosure, copying, and distribution are prohibited unless authorized.

« previous php.general (#305928) next »