Check Box CC email issue
Posted: Fri Sep 21, 2007 7:03 pm
feyd | Please use
Can someone please help.
thanks in advance.
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi I am trying to create a form that has a check box for send me a copy, i have created the below it sends the support resquest but does not CC the person requesting the support.
php code:Code: Select all
$email= valid_email($_POST['email']);
$toEmail = "xxxx@xxxx.com.au";
$username= $_POST['username'];
$question= $_POST['question'];
$priority= $_POST['priority'];
$headers = 'From: enquiries@xxxx.com.au' . "\r\n";
$headers .= 'Reply-To:' . $email . "\r\n";
$headers .= 'X-Mailer: PHP/' . phpversion();
// if they want to be CC'd
if(isset($_POST['copyMe']))
{
$headers .= 'Cc:' . $email . "\r\n";
}
$subject = "MIS Support";
$message = "Name: $username
<input type="checkbox" name="copyMe" value="checkbox" />
<em>Send a copy to my email</em></label></p>thanks in advance.
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]