note 30403 added to function.file

From: Date: Mon, 17 Mar 2003 08:47:01 +0000
Subject: note 30403 added to function.file
Groups: php.notes 
Request: Send a blank email to php-notes+get-45408@lists.php.net to get a copy of this message
<? $headers = "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: $sendername <$senderemail>\r\n"; $contents = implode("",file("newsletter.htm") ); echo($contents); $a_list = array() ; $a_list = file("mail_list.txt") ; echo("<h6>Total ".count($a_list)." email addresses found in the list </h6><br>") ; $cnt = 0 ; for($i=0 ;$i<count($a_list) ; $i++) { $cnt ++ ; echo($cnt . "....sending mail to ".$a_list[$i] ."....") ; mail($a_list[$i],$sub,"$contents","$headers"); echo("Done .....<br>"); } ?> -- http://www.php.net/manual/en/function.file.php http://master.php.net/manage/user-notes.php?action=edit+30403 http://master.php.net/manage/user-notes.php?action=delete+30403 http://master.php.net/manage/user-notes.php?action=reject+30403

« previous php.notes (#45408) next »