That is not the problem. @ and . need not be escaped. It's got to do with
the array that stores the file. Just need to dump the array and try to
debug. 

Any idea on how I can dump an array

regards,
kancha


On Thu, 26 Apr 2001 00:30:40 +0530, Subodh Gupta wrote:

>  Hi Kancha,
>  
>  Since you are putting the "From: [EMAIL PROTECTED]" in double quotes, I
believe that you need to esacape @ and (.) character by a
>  slash.
>  So you need to write "From: sysadmin\@foo\.com"
>  
>  Will anybody correct me if I am wrong?
>  
>  Subodh Gupta
>  I have learned, Joy is not in things, it is in us.
>  You will ultimately be known by what you give and not what you get.
>  
>  
>  
>  Hi all
>  
>  I have a text file with email addresses. Each line contains one email
>  address. I read the file using file() function. Below is a snippet of my
>  code
>  
>   $staff = file("staff");
>   for($x=0; $x<count($staff); $x++){
>     $to = $staff[$x];
>     mail($to, "New User Added", $mailBody, "From: [EMAIL PROTECTED]");
>   }
>  
>  
>  the snippet does send mail to all the address listed in the file staff
but
>  the header from of the mail is not [EMAIL PROTECTED], but when i replace
$to
>  with a string like "[EMAIL PROTECTED]" everything works fine. The from  header
is
>  set to [EMAIL PROTECTED] and the subject also appears.
>  
>  I'm using php 4.0.1pl1 with apache 1.3 in a linux box. what could be the
>  problem??
>  
>  kancha
>  





_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/



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