RE: [PHP] Re: mail() function

From: Date: Tue, 04 Mar 2003 13:55:34 +0000
Subject: RE: [PHP] Re: mail() function
Groups: php.general 
Request: Send a blank email to php-general+get-138102@lists.php.net to get a copy of this message
Not strictly true, the mail function will send to multiple email addresses separated by a comma, you can also cc and bcc by using headers. See the manual, which has some good examples of this. Mark -----Original Message----- From: Patrick Schnegg [mailto:info@killersushi.ch] Sent: 04 March 2003 13:14 To: php-general@lists.php.net Subject: [PHP] Re: mail() function The mail() function will only send one mail at a time, to send multiple mails you would write a loop like this (presuming you had your mail addresses ready in an array called $emails): foreach ($emails as $email) { mail($email, "your subject", "your message"); } "Denis L. Menezes" <menezesd@singnet.com.sg> wrote in message news:002c01c2e24d$9989a890$1e02a8c0@pcdenisxp... Hello friends, Can the mail() function send emails to multiple addresses which are formatted as follows : person1@hotmail.com,person2@yahoo.com,person3@yahoo.com..... etc with a comma or a semicolon between them? Thanks Denis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#138102) next »