Mail / Mail_mime, Cc, and Exchange
| From: | Michael Caplan | Date: | Thu, 17 Mar 2005 20:32:11 +0000 |
| Subject: | Mail / Mail_mime, Cc, and Exchange | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-18124@lists.php.net to get a copy of this message | ||
Hi,
I am having some difficulty figuring out why Email with Cc or Bcc headers
sent with PEAR::Mail and PEAR::Mail_mime are being ignored using a direct
SMTP connection to an Exchange 5 box (the email is being delivered to the
proper To recipient). Has anyone else experienced this?
A sample of what my code looks like:
$headers = array();
$headers['From'] = 'Intranet Tracking <' . $fw_ini['tracking.from']
. '>';
$headers['Subject'] = 'Nouvel article sur l\'Intranet / New Item on the
Intranet';
$headers['Cc'] = $fw_ini['tracking.cc'];
$headers['x-tracking-item-id'] = $this->tracking_id;
$headers['x-tracking-item-level'] = $this->level_id;
$mime = new Mail_mime();
$mime->setHTMLBody($body);
$body = $mime->get();
$res = $sendmail->send($email, $mime->headers($headers), $body);
Am I missing something here?
Thanks,
Michael
CONFIDENTIALITY NOTICE
This message contains confidential information intended only for the use of
the individual or entity named as recipient. Any dissemination, distribution
or copying of this communication by anyone other than the intended recipient
is strictly prohibited. If you have received this message in error, please
immediately notify us and delete your copy. Thank you.
AVIS DE CONFIDENTIALITÉ
Les informations contenues aux présentes sont de nature privilégiée et
confidentielle. Elles ne peuvent être utilisées que par la personne ou
l'entité dont le nom paraît comme destinataire. Si le lecteur du présent
message n'est pas le destinataire prévu, il est par les présentes prié de
noter qu'il est strictement interdit de divulguer, de distribuer ou de
copier ce message. Si ce message vous a été transmis par mégarde, veuillez
nous en aviser immédiatement et supprimer votre copie. Merci.