...

View Full Version : Sending mail - Multiple recipients



RedLineIT
10-23-2004, 04:21 AM
Hi everyone.
im creating a page for the site which i want toread a txt file and grab the addresses and send the email to all the addresses

here is the mail script



$ToSubject = "My subject";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: ME <me@mydomain.com>";
$EmailBody = " My content Here !";
mail($emailaddress,$ToSubject,$EmailBody,$headers);


how would i get the page to read the txt file and grab teh addresses and insert therm into that script

any help is appreciated

ta

Sk8er9547
10-23-2004, 04:29 AM
Check out this website, it looks like this would be exactly what you want!

http://www.php-scripts.com/php_diary/122899.php3

RedLineIT
10-23-2004, 04:34 AM
hi,

had a look and theres nothing there that shows me how to read a txt file and assing $emailaddress to the addresses :(

Sk8er9547
10-23-2004, 04:37 AM
Check out the rest of the tutorial, it tells you in blue code how to find the txt file and sort the emails...

http://www.php-scripts.com/php_diary/010100.php3

RedLineIT
10-23-2004, 04:46 AM
still seems a bit confusing :(



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum