smtp
| From: | Steve Buehler | Date: | Tue, 21 May 2002 18:34:23 +0000 |
| Subject: | smtp | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-98632@lists.php.net to get a copy of this message | ||
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 skb@sbcomp.net as the address.
$send_params['recipients'] = array('skb@sbcomp.net'); // The recipients (can be multiple)
$send_params['headers'] = array('From: "' . $mailer . '" <steve@vespro.com>',
'To: skb@sbcomp.net' , '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