...

View Full Version : looking for some help



sytodave88
02-07-2006, 01:10 PM
i need a scripts that can connect to ma database and select email and send an mass email to everone thats on the database

if someone can help me message me :thumbsup:

Mhtml
02-07-2006, 05:55 PM
Try www.hotscripts.com

Failing that, you can make one easily. This is a crude example you could work from:


$conn = mysql_connect("localhost","root","");
mysql_select_db("mailinglist");
$results = mysql_query("SELECT * FROM emails");
for($i = 0; $i < mysql_num_rows($results); $i++){
mail(mysql_result['email'],"subject","message");
}
mysql_close($conn);


Obviously you'd need error checking, and to load the message from a file or database but that's easy to add from there.. In the time it took you to post this problem you could have written it! :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum