while($row = mysql_fetch_array($result))
{
$addresses[] = $row['address'];
}
$to = implode(", ", $addresses);
As specified on the mail()
manual page, the “to” parameter of the function can take a comma-separated list of addresses.
More Related Contents:
- How to validate an email address in PHP
- How to check if an email address exists without sending an email?
- Sending email with gmail smtp with codeigniter email library
- How to send 100,000 emails weekly? [closed]
- PHP mail function doesn’t complete sending of e-mail
- How can I get the error message for the mail() function?
- How to send UTF-8 email?
- PHPMailer: SMTP Error: Could not connect to SMTP host
- problem with php mail ‘From’ header
- php mail() function on localhost
- Is there a PHP library for email address validation? [closed]
- Sending HTML email from PHP
- SMTP connect() failed PHPmailer – PHP
- Prevent sent emails treated as junk mails using php mail function
- When using Gmail for SMTP, can you set a different “from” address?
- Expected response code 220 but got code “”, with message “” in Laravel
- Trying to get Laravel 5 email to work
- How to change PHP’s eregi to preg_match [duplicate]
- How to use special characters in recipients name when using PHP’s mail function
- Proper prevention of mail injection in PHP
- Codeigniter send email with attach file
- How to send mail using PHP?
- PHPMailer character encoding issues
- PHP mail using Gmail
- How validate unique email out of the user that is updating it in Laravel?
- sending mail with php & escaping hotmails junk folder
- Change the sender name php mail instead of [email protected]
- How to get email and their attachments from PHP
- PHP mail stopped working
- How to block Disposable Email Addresses in your website’s registration form? [closed]