Send Mail

[insert_php]
$str=”From: “.$_POST[“firstname”].” “. $_POST[“lastname”].”\nPhone: “.$_POST[“phonenumber”].”\nEmail: ” . $_POST[“email”] . “\nMessage: ” . $_POST[“mesg”];
$headers[] = ‘From: Contact Us ‘;
$headers[] = ‘Cc: ‘;
$headers[] = ‘Cc: ‘;
[/insert_php]
[insert_php] wp_mail(“[email protected]”, “CCA Contact Us Questions”, $str, $headers); [/insert_php]
[insert_php]

echo “Dear “.$_POST[“firstname”].”,\n\n”;
echo “Thank you for contacting CCA! You have entered the following information: \n”;
echo $str ;
echo “\n\nOur staff will process your request and contact you soon.”;
[/insert_php]