SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    Turnersvill, NJ
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello,

    I am about to send out email announcing my new CD and I wanted to know if there was a way in PHP to hide the email recipients. I have a SQL db that has all the email addresses.

    OR: (just thought about it!)

    I could fire off 1 at a time...how can I create an array/loop to do this?

    Thanks!
    Keith
    <Edited by klubrant on 01-04-2001 at 06:14 PM>
    singer/songwriter...that's why I ask all the questions!
    www.keithlubrant.com

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you have your own mail server you could make an alias that holds all the email addresses, but I don't think you can do it with PHP. You could just execute the mail() command to each address in the db, that way only the recipient will have his or her email address in the to field.
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    Turnersvill, NJ
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks FreddydoesPHP!

    I cracked open my Kevin Yank bible and threw together this:

    $recip= mysql_query( "SELECT email from mailer" );
    while ($recip= mysql_fetch_array($recip)) {

    $email = $recip["email"];
    mail(xxx,xxx,xxx,xxx);
    }


    echo ("Mail sent...");

    ?>

    Worked like a champ....Thanks!
    <Edited by klubrant on 01-04-2001 at 06:44 PM>
    singer/songwriter...that's why I ask all the questions!
    www.keithlubrant.com


Bookmarks

Posting Permissions

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