Try changing all your \n to \r\n.

RFC is \r\n.

Un*x mail programs are smart enough to take \n
Microsoft mail programs are not that smart.

Put in the space after Cc: and before your email.

The space is *required* by some (all?) emailers?

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: "Peter Houchin" <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Tuesday, February 13, 2001 11:25 PM
Subject: [PHP] mail not sending to multiple address


> Can some one please have a look through this and give me a step in the
right
> direction asto why my mail script won't cc or bcc.  I've checked with the
> mail server admin and he said as far as the email server is concerned it
> supports multiple email address.. it will only send  to the $address but
not
> any other address..
>
> /* recipients */
>
> $address .= "$email"  ;//note the comma
>
> // Subject
>
> $subject = "ABC Calculation Results";
>
> file://Body of email
>
> $body = "Thank you $user,\n Your Rental Monthly Figures are as follows:\n
> \n 24 Months = $ $m2 \n 36 Months = $ $m3 \n 48 Months = $ $m4 \n
> Your Quartly Figures are: \n $ $q2 Over 24 Months \n $ $q3 Over 36 Months
\n
> $ $q4 Over 48 Months\n
> \n\n\n\n
> Thank you again from VFSA-eRentals</font>";
>
> file://Where the email is from
>
>
> $headers .= "From: ABC <[EMAIL PROTECTED]>\n";
> $headers .= "X-Sender: <[EMAIL PROTECTED]>\n";
> $headers .= "X-Mailer: PHP\n"; // mailer
> $headers .= "X-Priority: 1\n"; // Urgent message!
> $headers .= "Return-Path: <[EMAIL PROTECTED]>\n";  // Return path for
> errors
>
> /* If you want to send html mail, uncomment the following line */
> file://$headers .= "Content-Type: text/html; charset=iso-8859-1\n"; //
Mime type
>
> $headers .= "cc:[EMAIL PROTECTED]\n"; // CC to
> $headers .= "bcc:[EMAIL PROTECTED]\n"; // BCCs to
>
> file://send the email
>
> $mailsend = mail("$address", "$subject", "$body.", "$headers
\nContent-Type:
> text/plain; charset=iso-8859-1\nContent-Transfer-Encoding: 8bit" );
> print ("$mailsend");
> ?>
>
> Thanks
>
> Peter
>


-- 
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