Re: Re: Warning Spammer
| From: | Ernest E Vogelsinger | Date: | Wed, 11 Jun 2003 12:19:08 +0000 |
| Subject: | Re: Re: Warning Spammer | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151061@lists.php.net to get a copy of this message | ||
At 14:08 11.06.2003, Kevin Saenz said:
--------------------[snip]--------------------
>I think we are waaaay off topic.
>But how do you know if they are sending from a legit email account
>I know if I was a spammer I would be using made up ones like
>123487549@aol.com joe9358467@hotmail.com how hard is it to forge
>email addresses?
--------------------[snip]--------------------
It's extremely simple - just put any email address as "From" address:
mail('ksaenz@spinaweb.com.au',
'Buy me!',
'Here\'s some spam for you',
"From: 123487549@aol.com\r\n" .
"Reply-To: ksaenz@spinaweb.com.au\r\n" .
"X-Mailer: PHPSpam/" . phpversion() . "\r\n",
"-f123487549@aol.com");
The last parameter is a sendmail parameter which may be omitted (doesn't
work in safe mode anyway, see http://www.php.net/manual/en/function.mail.php).
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/