Re: [PHP] weird mail function problem

2005-02-21 Thread Richard Lynch
Ahmed Abdel-Aliem wrote: > hi > i use this code to send email from mysite > but when it sends to some accounts it repeats the body part twice in > the same email while to other accounts it sends the body one time only > can anyone help in that plz ? > > if ($email_to != "") { >

RE: [PHP] weird mail function problem

2005-02-21 Thread Brett Patterson
uot; . phpversion() . "\n"; $header .= "X-Priority: 1"; $header .= "To: Some [EMAIL PROTECTED]"; // Masks To: field mail($to_email, $subject, $body, $header); } That would make more sense, yet still the server load would be huge because of all th

Re: [PHP] weird mail function problem

2005-02-21 Thread Randy Johnson
You should have this at the top of your for loop $body=""; Ahmed Abdel-Aliem wrote: hi i use this code to send email from mysite but when it sends to some accounts it repeats the body part twice in the same email while to other accounts it sends the body one time only can anyone help in that plz ?

[PHP] weird mail function problem

2005-02-21 Thread Ahmed Abdel-Aliem
hi i use this code to send email from mysite but when it sends to some accounts it repeats the body part twice in the same email while to other accounts it sends the body one time only can anyone help in that plz ? if ($email_to != "") { $to = array(); $to