Php email through flash contact page is jibberish. HELP PLEASE!!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • staryeyes47
    New Member
    • Jul 2007
    • 1

    Php email through flash contact page is jibberish. HELP PLEASE!!!

    Hi,

    I am creating a contact page for a my website and I am having a bit of trouble. I have created the form in flash, and am using a php file to send the email to myself. The form works OK, but when it deliver's it to my inbox, I am getting all of this jibberish with the email Example:

    Code:
    Name: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#242868" LETTERSPACING="0" KERNING="0">Test</FONT></P></TEXTFORMAT>
    Phone: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#242868" LETTERSPACING="0" KERNING="0">111111111</FONT></P></TEXTFORMAT>
    Email: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#242868" LETTERSPACING="0" KERNING="0">someone@something.com</FONT></P></TEXTFORMAT>
    Message: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#242868" LETTERSPACING="0" KERNING="0">this is a test</FONT></P></TEXTFORMAT>
    _childCounter: 1
    focus_mc: _level0.depthChild0
    I was wondering if anyone knew a way that I could get it to send clean emails that I could read? I have been trying to figure this out for 2 days. I have done just about every tutorial on the net, and searched every PHP site to see if I can figure it out and I am stuck. My input boxes are named Name, Phone, Email and Message. The script I have used on my submit button is:

    Code:
    on (release) {
    if (Name eq "" or Phone eq "" or Email eq "" or Message eq "") {
    stop();
    } else {
    loadVariablesNum("form.php", 0, "POST");
    gotoAndStop(191);
    }
    }
    And the PHP file is:

    Code:
    <?php
    
    $Name = $_POST["Name"];
    $Email = $_POST["Email"];
    $Phone = $_POST["Phone"];
    
    $ToEmail = "email@email.com";
    $ToSubject = "Websit Inquiry";
    
    $EmailHeader="This person has submitted this feedback\n\n\n";
    $EmailBody = "Name: $Name\nEmail: $Email\nTelephone: $Phone\n";
    
    $Message = $EmailHeader.$EmailBody;
    mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$FirstName." <".$Email.">");
    ?>
    Any help would be great as this is driving me insane!!!
  • username22
    New Member
    • Aug 2007
    • 1

    #2
    It looks as though the texfields in your form are set to "render text as HTML".

    Try unselecting that in the properties menu of each texfield (it's the button that looks like this: <>) and see how that works for you.

    Comment

    • webcreator286
      New Member
      • Aug 2008
      • 1

      #3
      I am getting the exact same error. I have tried turning "render text as HTML" option on and off and I am still getting the HTML code in my emails. Any other suggestions.

      Staryeyes47.... did you ever get this resolved?

      Any help would be very much appreciated.

      Thanks,

      Comment

      Working...