Re: mail with CC and BCC

From: Date: Tue, 03 Dec 2002 14:45:47 +0000
Subject: Re: mail with CC and BCC
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-126860@lists.php.net to get a copy of this message
Hello, On 12/03/2002 10:09 AM, Alain Romero wrote:
PHP server = Win 2000 SP2/php 4.1.2 SMTP server = Netscape Messenger 4.15 (declare on php.ini) Why CC and BCC never receive mail ?
The mail() function has its set of flaws, especially under Windows.
The header 'TO' is correct : see CC and BCC ! The header : "From : ..... CC: john@domain.com BCC: fred@domain.com" I try severals classes I have found (PHP Classes), no good result !
You can use this class function $email_message->SetHeader("Cc:" or "Bcc:", "email@addresses.seperated.with.commas, another@address.etc"); http://www.phpclasses.org/mimemessage If the mail() function is really not working, you may need to use also the smtp_message sub-class along with this other class for sending: http://www.phpclasses.org/smtpclass -- Regards, Manuel Lemos

« previous php.general (#126860) next »