I wrote a small piece of code to take a text file with
a list of email addresses in it one per line and send out
an email to each of them like so...

        $headers = "From:  [EMAIL PROTECTED]\r\n";
        $headers .= "Reply-To: [EMAIL PROTECTED]\r\n";
        
        $message = "Blah Blah Blah";
        
        $subject = "Subject of the message";

$arrText = file("test.txt");

for ($i=0; $i<count($arrText); $i++) {
        mail("$arrText[$i]", $subject, $message, $headers);
}

When received, the message shows up from root with no subject
and the additional headers are in the body of the message..
When I manually specify an email address instead of $arrText[$i]
it comes thru as expected showing the additional headers where they
should be. Does anyone have a suggestion on this?

Thanks in advance,
Jack Davis



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to