How to use Mail::SMTP with multible recipients ?
| From: | Franz P. | Date: | Sun, 07 Sep 2003 23:14:23 +0000 |
| Subject: | How to use Mail::SMTP with multible recipients ? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-7629@lists.php.net to get a copy of this message | ||
Hello,
i want to send mails to multible recipients with the mail::smtp->send
function, i have used the normal way as descriped in the docs:
$mail->send( array('"User 1" <user1@example.com>', '"User
2"
<user2@example.com>'), array('Subject' => 'Test',
'Return-Path' =>
'dummy@example.com'));
no errors in the script - but when i get the mail the "To:" header says:
"undisclosed-recipients:"
what im doing wrong? i have checked my adresses with the
Mail_RFC822::parseAddressList() method, all right here.