note 21785 deleted from function.mail by philip

From: Date: Thu, 04 Jul 2002 23:54:45 +0000
Subject: note 21785 deleted from function.mail by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-32610@lists.php.net to get a copy of this message
If you use the file() function in the same routine as the mail() function, it will send ALL your headers as part of the msg, NOT as headers! For example, this will not work ... $list = file("dir/file.txt"); # php doesn't like this mail("$list[0]","subject","Hey!"); If you want to do this, try putting the array in the code itself, instead of importing it. For example, this will work ... $list = Array("q@q.com","etc,"); # php likes this mail("$list[0]","subject","Hey!"); Hope this helps!

« previous php.notes (#32610) next »