Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2005
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation looking for some help

    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

  • #2
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Try www.hotscripts.com

    Failing that, you can make one easily. This is a crude example you could work from:
    PHP Code:
    $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!
    Omnis mico antequam dominus Spookster!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •