Re: Mass-mailing method

From: Date: Fri, 03 Jan 2003 10:26:10 +0000
Subject: Re: Mass-mailing method
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-130078@lists.php.net to get a copy of this message
some times more than 100 bcc's are treated spam and dropped by the server, try it with a limit in the query. Best Wishes & Happy New Year Paul Roberts mail@paul-roberts.com ++++++++++++++++++++++++ ----- Original Message ----- From: "Cesar Aracena" <icaam@icaam.com.ar> To: <php-general@lists.php.net> Sent: Friday, January 03, 2003 6:19 AM Subject: RE: [PHP] Mass-mailing method I'm going to try changing that. I don't have access to my client's server as I work remotely, so I can't view any logs... or can I? If anyone else have something for me to try, start shooting... Thanks, Cesar L. Aracena icaam@icaam.com.ar caracena@infovia.com.ar (0299) 156-356688 Neuquén (8300) Capital Argentina -----Mensaje original----- De: Michael J. Pawlowsky [mailto:mikejp@videotron.ca] Enviado el: viernes, 03 de enero de 2003 3:15 Para: Cesar Aracena; php-general@lists.php.net Asunto: Re: [PHP] Mass-mailing method Take a look at the sendmail.log for some clues... But I had something weird were it worked fine for me at home Linux 8 PHP 4.2.2 and when I sent it up to the prod server I had to change the ."\r\n"; to ."\n"; Which technically is wrong. Go figure! But take a look at the sendmail log to begin with. Mike *********** REPLY SEPARATOR *********** On 03/01/2003 at 3:08 AM Cesar Aracena wrote: >Hi all, > >I did a registration page for a customer, and now I'm trying to develop >a way for him to send an e-mail once in a while to the people registered >with him. I did something (shown below) and everything seems to be ok, >but the e-mail never reaches... Can someone find the problem or maybe >point me to something already done to send multiple e-mails as BCC??? > >Thanks in advance, > >$query = "SELECT * FROM mararegistro2 ORDER BY lname"; >$result = mysql_query($query) or die (mysql_errno()); >$num_rows = mysql_num_rows($result); > >for ($x=0; $x < $num_rows; $x++) >{ >$row = mysql_fetch_array($result); >$bcc .= $row[email]."; "; >} > >$myname = "".$name.""; >$myemail = "".$email.""; > >$contactemail = $bcc; > >$message = "".$mes.""; >$subject = "".$subject.""; > >$headers .= "MIME-Version: 1.0\r\n"; >$headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; >$headers .= "From: ".$myname." <".$myemail.">\r\n"; >$headers .= "Bcc: ".$contactemail."\r\n"; >$headers .= "Reply-To: ".$myname." <".$myemail.">\r\n"; >$headers .= "X-Priority: 1\r\n"; >$headers .= "X-MSMail-Priority: High\r\n"; >$headers .= "X-Mailer: Joyeria Mara"; > >$mail = mail("", $subject, $message, $headers); > > > >Cesar L. Aracena >icaam@icaam.com.ar >caracena@infovia.com.ar >(0299) 156-356688 >Neuquén (8300) Capital >Argentina > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#130078) next »