Web Hosting Talk







View Full Version : formmail (cc)


cmtusa
06-10-2004, 10:17 PM
Anyone know the code to add a carbon copy to a formmail> Can't seem to remember the code.

Epagien
06-11-2004, 12:30 AM
After reviewing: PHP Manual (http://us4.php.net/manual/en/function.mail.php)
Add this to the mail() header

$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "To: Address <address @ email.com>\r\n";
$headers .= "From: Example <address @ email.com>\r\n";
$headers .= "Cc: cc @ email.com\r\n";
$headers .= "Bcc: bcc @ email.com\r\n";

- Ripped from the above site

cmtusa
06-11-2004, 12:39 AM
Actually, I meant a formail script. I know this part of the script (see below), but I can't remember how to add a carbon copy to it.

<form method="POST"
action="http://domainname.com/cgi-sys/FormMail-clone.cgi">
<input type=hidden name="subject" value="Inquiry from Web">
<input type=hidden name="recipient" value="e-mail address">