How to send an email to everone listed in a file

From: Date: Wed, 10 Apr 2002 15:42:22 +0000
Subject: How to send an email to everone listed in a file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-92422@lists.php.net to get a copy of this message
Dear David, You're going to have 2 problems: (1) You're going to overload the outgoing mail server. I've done it. Now i use a newsletter-type mailing list. (2) Invalid e-mail addresses will be returned to your hosting provider, not to the "From: ..."address. I'm looking for an answer to this now. Here's the code I use for 1 e-mail. <?php set_time_limit(300); ... connect, select db, etc. ... $message="Dear consumer,\n ...\n Thanks!\n SBW Research (www.sbwresearch.com) "; mail("$e_mail",
     "Thanks!",
     "$message",
     "From:SBW Research <mail@sbwresearch.com>\n");
@mysql_close($connection); header ("location:add_5.htm"); flush(); exit; ?>

« previous php.general (#92422) next »