Josepablo,

> <?
> $maildb = file("mailaddr.txt");
>
> foreach ($maildb as $address)
> { mail($address, "THis is the subject\n", "This is the message\n", "From: 
>[EMAIL PROTECTED]\n"); }
> ?>
>
> The mailaddr.txt looks like:
>
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
> However the script does send mails BUT they look like this:
>
> From Nobody <[EMAIL PROTECTED]>
> To [EMAIL PROTECTED]
> Subject [No Subject]
>
> **From here down is the message body***
>
> Subject THis is the subject
> From: [EMAIL PROTECTED]
>
> This is the message
>
> Anybody have an idea why?? I tried it on 2 servers running PHP4 doesnt work, however 
>i also tried using the
mail(...) i used up there but alone and that does work.. so the array is screwing 
something up..


=which operating system are you using?
=what does your web server have as its admin mail address?
=have you tried running without the \n at the end of each field?

=dn


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to