SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru mmarif4u's Avatar
    Join Date
    Dec 2006
    Location
    /dev/swat
    Posts
    619
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Send email to all db users

    Hi guys...
    I want to send emails to my users,
    For example i have a package and i want to get notice to the users,
    So i will send emails to users from db.

    I have some script but how to send email to all users from db.

    Any body have some idea.

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    $result mysql_query("SELECT email FROM table");
    while (
    $row mysql_fetch_array($result)) {
      
    mail($row['email'], "My Subject""Amazing news! I have a package for you!""From: admin@example.com");


  3. #3
    SitePoint Guru mmarif4u's Avatar
    Join Date
    Dec 2006
    Location
    /dev/swat
    Posts
    619
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Dan Grossman

    The bulb is now turn on...


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
  •