Its Urgent for me please help me in PHP mail.

Discussion in 'PHP' started by actress143, May 3, 2010.

  1. #1
    3 days back i designed applicaion in php..,

    in that it will takes

    Name
    Email $email
    Mobile
    Country

    and it will stores into database.., suppost 10,0065 users are registred.

    My question is i want to send mail to all the mails at a time in my database.

    some thing like send mail to particular column.. which contains email id's of all the users.

    mysql_query("SELECT name FROM appsubmit WHERE name email



    please help me
     
    actress143, May 3, 2010 IP
  2. mysql_create_db

    mysql_create_db Guest

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    its very easy
    you can forech all users and send for each one
     
    mysql_create_db, May 3, 2010 IP
  3. actress143

    actress143 Peon

    Messages:
    132
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No Firend.. not like that.., once i press send button.. mail should be process to all the users in my database, any body...?
     
    actress143, May 3, 2010 IP
  4. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #4
    supposed that your emailer is working.

    do something like

    emails = all emails

    then merge into one string
    separated by a semicolon, if you are sending it like 10k emails try to divide the request
     
    bartolay13, May 4, 2010 IP
  5. roopajyothi

    roopajyothi Active Member

    Messages:
    1,302
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #5
    Yeah declare a variable contains all mail ids and use that!
    But overloading may make things crap!
     
    roopajyothi, May 4, 2010 IP
  6. actress143

    actress143 Peon

    Messages:
    132
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    ya you are correct.. roopajyothi, but what i have to do..

    but i have to send the mails to them..
     
    actress143, May 4, 2010 IP
  7. shopsafer

    shopsafer Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    In fact - this is the most reliable solution. This is because most Email clients deem Bcc and CC emails as a spam source.

    Sending a dedicated email, per person, will ensure that the "spam trap", in Outlook etc. is not grabbing your emails on entry.
     
    shopsafer, May 4, 2010 IP
  8. FriendSwapMeet.com

    FriendSwapMeet.com Peon

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    $result = mysql_query("SELECT * FROM email");
    while($row = mysql_fetch_array($result))
    {
    $email = $row['email'];

    mail("$mail", "title", "body", "FROM:s@s.comm");


    }
     
    FriendSwapMeet.com, May 4, 2010 IP
  9. FriendSwapMeet.com

    FriendSwapMeet.com Peon

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    $mail should be $email
     
    FriendSwapMeet.com, May 4, 2010 IP
  10. shopsafer

    shopsafer Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    You should, in most cases, make sure that you set the return-path header as well and ensure it matches the "from" header field. This will also reduce the chances of the recieving client asuming it's spam.
     
    shopsafer, May 5, 2010 IP
  11. actress143

    actress143 Peon

    Messages:
    132
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Ohh thanks frineds..., its very useful to me..!

    thansk FriendSwapMeet.com, shopsafer :D
     
    actress143, May 5, 2010 IP