[PHP] Newsletter on the way..stuck in the moment!
Hi! Well, I want to send an email to about 300 people. The problem is that if I use this method people can see all the email address of the people whoever it is sent to. ?php $connect = mysql_connect(); $query = "select email from news"; $execute = mysql_db_query("uaegraduate", $query); while($r = mysql_fetch_array($execute)) { $email = $r['email']; $add .= $email . ","; } $headers = "From: [EMAIL PROTECTED][EMAIL PROTECTED]\n"; $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; $subject = "hey"; $to = "$add"; $mailmessage = "hey this is the message"; $mailsomeone = mail($to, $subject, $mailmessage, $headers); if($mailsomeone) { echo "Success"; } ? If I use the above method, all the email address will apear in the to: like this:- To:[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] and goes on for 300 entries. Is there any way I can stop this from happening yet the mails reaching their destination. Thank You Cheers!~ Dhaval Desai __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Newsletter on the way..stuck in the moment!
"Dhaval Desai" [EMAIL PROTECTED] wrote: Well, I want to send an email to about 300 people. The problem is that if I use this method people can see all the email address of the people whoever it is sent to. Add the addresses to the bcc: field instead of the to: field. I believe this is covered in an example right in the manual. See mail() in the manual online. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Newsletter on the way..stuck in the moment!
300 recipients is allot. I would not use a script for so many. Why don't you use a program that was designed to send many emails such as Group Mail : http://www.sellshareware.com/CustomView.asp?PrID=34604AfID=2407PageID=1 I use it to send mail to tens of thousands of recipients and it's great. Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: Steve Werby [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 8:41 PM To: Dhaval Desai; [EMAIL PROTECTED] Subject: Re: [PHP] Newsletter on the way..stuck in the moment! "Dhaval Desai" [EMAIL PROTECTED] wrote: Well, I want to send an email to about 300 people. The problem is that if I use this method people can see all the email address of the people whoever it is sent to. Add the addresses to the bcc: field instead of the to: field. I believe this is covered in an example right in the manual. See mail() in the manual online. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Newsletter on the way..stuck in the moment!
BCC - blind carbon copy Miles At 11:23 AM 4/6/01 -0700, Dhaval Desai wrote: Hi! Well, I want to send an email to about 300 people. The problem is that if I use this method people can see all the email address of the people whoever it is sent to. ?php $connect = mysql_connect(); $query = "select email from news"; $execute = mysql_db_query("uaegraduate", $query); while($r = mysql_fetch_array($execute)) { $email = $r['email']; $add .= $email . ","; } $headers = "From: [EMAIL PROTECTED][EMAIL PROTECTED]\n"; $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; $subject = "hey"; $to = "$add"; $mailmessage = "hey this is the message"; $mailsomeone = mail($to, $subject, $mailmessage, $headers); if($mailsomeone) { echo "Success"; } ? If I use the above method, all the email address will apear in the to: like this:- To:[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] and goes on for 300 entries. Is there any way I can stop this from happening yet the mails reaching their destination. Thank You Cheers!~ Dhaval Desai __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]