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

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 ?

RE: [PHP] weird mail function problem

2005-02-21 Thread Brett Patterson
. Look into PEAR::Mail or using SMTP. ~Brett -Original Message- From: Ahmed Abdel-Aliem [mailto:[EMAIL PROTECTED] Sent: Monday, February 21, 2005 2:39 PM To: php-general@lists.php.net Subject: [PHP] weird mail function problem hi i use this code to send email from mysite but when it sends

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 != ) { $to =