note 72988 modified in ref.mail by thiago
| From: | thiago@php.net | Date: | Wed, 17 Nov 2010 12:14:34 +0000 |
| Subject: | note 72988 modified in ref.mail by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-174115@lists.php.net to get a copy of this message | ||
If you have programmed headers do not adopt post-values unfiltered!!
Often used in scripts, and often abused by spam mailings:
<?php
$headers = "From: {$email}";
?>
If somebody posts email="me@example.com
Bcc:someone1@example.com,someoneelse@example.com,..."
(with linebreak behind me@example.com)
You get following headers:
From: me@example.com
Bcc:someone1@example.com,someoneelse@example.com,...
--was--
If you have programmed headers do not adopt post-values unfiltered!!
Often used in scripts, and often abused by spam mailings:
$headers = "From: {$email}";
If somebody posts email="me@example.com
Bcc:someone1@example.com,someoneelse@example.com,..."
(with linebreak behind me@example.com)
You get following headers:
From: me@example.com
Bcc:someone1@example.com,someoneelse@example.com,...
http://php.net/manual/en/ref.mail.php