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
No Firend.. not like that.., once i press send button.. mail should be process to all the users in my database, any body...?
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
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.
$result = mysql_query("SELECT * FROM email"); while($row = mysql_fetch_array($result)) { $email = $row['email']; mail("$mail", "title", "body", "FROM:s@s.comm"); }
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.