PHP Classes

cc header

Recommend this page to a friend!

      SMTP E-mail sending class  >  SMTP E-mail sending class package blog  >  Sending messages to m...  >  All threads  >  cc header  >  (Un) Subscribe thread alerts  
Subject:cc header
Summary:multiple recipient
Messages:3
Author:evon
Date:2009-04-20 14:09:59
Update:2009-04-21 06:35:09
 

  1. cc header   Reply   Report abuse  
Picture of evon evon - 2009-04-20 14:09:59
hi,
i stil dont get how your multi recipient works.

1. i did this and the cc email does not receive the email. Is this how you do it?

2. i am trying to send html body, why am i getting the html codes instead?

This is the code for multiple recipient:-

if($smtp->SendMessage(
$from,
array(
$to
),
array(
"From: $from",
"To: $to",
"Cc: $Cc",
"Subject: Travel Request Form",
"Date: ".strftime("%a, %d %b %Y %H:%M:%S %Z")
),
$message))


regards,ej

  2. Re: cc header   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-04-20 20:16:41 - In reply to message 1 from evon
It is explained in the article that what you put in the headers of the message do not matter for the SMTP protocol.

All recipient addresses should be extracted from the headers and passed to the SendMessage function in an array, one address per array entry.

Anyway, as it is also explained, you should use the MIME message with the SMTP class instead of the SMTP class directly:

phpclasses.org/mimemessage

  3. Re: cc header   Reply   Report abuse  
Picture of evon evon - 2009-04-21 06:35:09 - In reply to message 2 from Manuel Lemos
Hi Manuel,

Thanks for the reply. Am testing your mimemessage script.
regards,ej