I remeber this being discussed earlier this year and did a search.
Whoops, didn't think to search 😃 I'm not on this side of the posting usually.
Thanks Ramjet. That is not how my spammers were getting through, but that is SOOO helpful to know. Mine were getting through via this script (not written by me. :glare: )
$pipe=popen("/usr/sbin/sendmail -L PHP_MAILED -f \"" . $from . "\" \"" . $to . "\"","w");
$message = format($message);
$mysubject = format($mysubject);
if (!$pipe) return false;
fputs($pipe,"To: $to\n");
fputs($pipe,"Reply-To: $from\n");
fputs($pipe,"Errors-To: $from\n");
//fputs($pipe,"From: $from\n");
fputs($pipe,"Subject: $mysubject\n");
fwrite($pipe,$message);
It was written 'cause the guy coudln't make PHP mail function work 😉 The spammers must have really tweaked to figure this out. I believe I fixed it with just...
$pipe=popen("/usr/sbin/sendmail -L PHP_MAILED -f \"" . escapeshellcmd($from) . "\" \"" . escapeshellcmd($to) . "\"","w");
$message = format($message);
$mysubject = format($mysubject);
if (!$pipe) return false;
fputs($pipe,"To: $to\n");
fputs($pipe,"Reply-To: $from\n");
fputs($pipe,"Errors-To: $from\n");
//fputs($pipe,"From: $from\n");
fputs($pipe,"Subject: $mysubject\n");
fwrite($pipe,$message);
Anyhow, are there any ideas about logging php emails? Google didn't turn up too much.
Thanks again.