SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member moneybyus's Avatar
    Join Date
    Mar 2001
    Location
    MN
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mailing list help

    When I ran this script, it sent over 300 mail to one address, I dont know if it sent that many to everyone or not, but I do know that almost everyone got it. Can anyone tell me why it sent that many mails?

    Here is the mailing script.

    dbconnect('moneybyus_com');
    $sql = mysql_query("Select * from maillist");

    while($row=mysql_fetch_row($sql)) {

    mail($row[1],"Special offer from Money By Us",
    $message, "From:Money By Us Contests <contests@moneybyus.com>");

    }

  2. #2
    SitePoint Addict kunal's Avatar
    Join Date
    Oct 2000
    Posts
    307
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try using this,

    Code:
    while($row=mysql_fetch_array($sql)) { 
    
    blah...
    }
    i dunno...


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
  •