Hi there,
I’ve successfully set up a simple PHP contact form (name, email, message) using Flash 8. However, the email posted through the server shows a bunch of TEXTFORMAT LEADING code in the From and Reply-To sections of the email. In the body of the email it says:
<TEXTFORMAT LEADING="-1"><P ALIGN=“LEFT”><FONT FACE=“Century Gothic” SIZE=“12” COLOR="#666666" LETTERSPACING=“0” KERNING=“0”>testing this thing out…</FONT></P></TEXTFORMAT>
My PHP file says the following:
<?php
$sendTo = "rrrrrrr@nyc.rr.com";
$subject = “Website Messages”;
$headers = “From: " . $_POST[“firstName”] .” “. $_POST[“lastname”] . “<” . $_POST[“email”] .”>
";
$headers .= "Reply-To: " . $_POST[“email”] . "
";
$headers .= "Return-path: " . $_POST[“email”];
$message = $_POST[“message”];
mail($sendTo, $subject, $message, $headers);
?>
I followed this tutorial - http://www.kirupa.com/developer/actionscript/flash_php_email.htm. Do you think it’s something wrong in my Flash file. Please steer me in the right direction.
Many thanks in advance!