Re: Mail / Mail_mime, Cc, and Exchange
| From: | Michael Caplan | Date: | Fri, 18 Mar 2005 13:06:19 +0000 |
| Subject: | Re: Mail / Mail_mime, Cc, and Exchange | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-18134@lists.php.net to get a copy of this message | ||
But that doesn't explain how to do Cc and Bcc (what you are saying is to do
To for everyone, how do you handle lists of people?). If I don't use the
SMTP driver but the mail drive, it works no problem.
Thanks,
Mike
-----Original Message-----
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.
From: Justin Patrin [mailto:papercrane@gmail.com]
Sent: Thursday, March 17, 2005 1:01 PM
To: Michael Caplan
Cc: pear-general@lists.php.net
Subject: Re: [PEAR] Mail / Mail_mime, Cc, and Exchange
On Thu, 17 Mar 2005 15:32:11 -0500, Michael Caplan
<michael.caplan@lechateau.ca> wrote:
> 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?
>
Well, send() sends the e-mail to $email, but not to anyone else. You
need to call send() for *all* of the addresses you want to send the
e-mail to.
--
Justin Patrin
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php