Mail_Mime: Multiple Recipients
| From: | Fortuna_1973 | Date: | Wed, 31 Aug 2005 21:42:37 +0000 |
| Subject: | Mail_Mime: Multiple Recipients | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-20707@lists.php.net to get a copy of this message | ||
Hello,
Using following class:
/**
* Filename.......: class.html.mime.mail.inc
* Project........: HTML Mime mail class
* Last Modified..: $Date: 2004/11/24 13:14:10 $
* CVS Revision...: $Revision: 1.4 $
* Copyright......: 2001, 2002 Richard Heyes
*/
I have problems sending an email to multiple recepients using the
above HTML Mime class.
My code snippet using the class looks like this:
require_once("library/htmlMimeMail.php");
$email_kunde_stack = array_unique($email_kunde_stack); # Array holds
the emails
$mail = new htmlMimeMail();
$text = $strEmailContent;
$mail->setHtml($html,$text, './');
$absender_email = ANFRAGE_FROM_HTML;
$betreff_email = ANFRAGE_SUBJECT_ANGEBOTSKORB_KUNDE." vom {$today}";
$mail->setFrom($absender_email);
$mail->setSubject($betreff_email);
$strEmails = implode ( ",",$email_kunde_stack);
$mail->send(array($strEmails));
In my email client, I just receive 1 email, the content is actually
perfect. The "to:" line shows the following:
to: email.1@%%%.biz; email.2@%%%.de; email.3@%%%.de (%%% is just a
placeholder)
=> Looks good, but why I'm I just receiving the email at the first
email, here email.1@%%%.biz. Shouldn't I receive 3 emails?
Thanks for your help!