Multiple Recipients (MAIL)

From: Date: Mon, 21 Feb 2005 20:29:27 +0000
Subject: Multiple Recipients (MAIL)
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17606@lists.php.net to get a copy of this message
Hi again. I was wondering how I would go about doing this (yes I've read the manual, but have questions): I want to send an email to a recipient, and Cc it back to the writer. The recipient is not always static, as well as the writer is not static. I have tried including the $headers['To'] = $Recip; $headers['Cc'] = $Name." <".$Email.">" but that doesn't work. It gives me the right headers, but the wrong To: line: To: webmaster@domain.com; name@domain.com; webmaster@domain.com; Cc: name@domain.com; What is the best way to Cc an email using the PEAR::Mail class so that the email headers are formatted: To: webmaster@domain.com Cc: Full Name <name@domain.com>? Thanks for the help. ~Brett

« previous php.pear.general (#17606) next »