note 16512 deleted from ref.mail by zak
| From: | zak@php.net | Date: | Fri, 02 Nov 2001 12:28:45 +0000 |
| Subject: | note 16512 deleted from ref.mail by zak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-20299@lists.php.net to get a copy of this message | ||
How can I send multiple emails with mail()-function?
This won't work:
mail($list[$i], "the subject", $message,
"From: webmaster@$SERVER_NAME\r\n"
."Reply-To: webmaster@$SERVER_NAME\r\n"
."X-Mailer: PHP/" . phpversion());
It sent mails but from "anonymous@website.com".. Something is not working with message
headers.. This tags are printed to body part of the message:
Subject: Test
From: test@test.com
Reply-To: test@test.com
X-Mailer: PHPmailTest
testing phpmail...