note 16512 added to ref.mail
| From: | goatride at spacemail dot com | Date: | Fri, 02 Nov 2001 12:01:54 +0000 |
| Subject: | note 16512 added to ref.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-20298@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...
--
http://www.php.net/manual/en/ref.mail.php
http://master.php.net/manage/user-notes.php?action=edit+16512
http://master.php.net/manage/user-notes.php?action=delete+16512
http://master.php.net/manage/user-notes.php?action=reject+16512