http://php.net/array_push
miguel
On Tue, 21 May 2002, Steve Buehler wrote:
> I am trying to use the "smtp class" from phpguru.org with a mysql database
> using PHP. My question is this. I understand that I can send out email to
> multiple email addresses using this class. How can I populate these arrays
> with the email addresses. The fields that would have all of the addresses
> in them would be the ones that have [EMAIL PROTECTED] as the address.
>
> $send_params['recipients'] = array('[EMAIL PROTECTED]'); // The recipients
> (can be multiple)
> $send_params['headers'] = array('From: "' . $mailer . '" <[EMAIL PROTECTED]>',
> 'To: [EMAIL PROTECTED]' , 'Subject: ' . $mail_subject
> );
> I figure that I would be using a while loop like the following:
> while($query_data = mysql_fetch_row($result)) {
> $row=mysql_fetch_object($result);
> // This is where I would use something to add $row->email to the arrays.
> }
>
> Thank you in Advance
> Steve Buehler
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php