Need Help Figuring out why my customer form will not send email.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dfluker
    New Member
    • Feb 2010
    • 10

    Need Help Figuring out why my customer form will not send email.

    This form will not send the email to my account and I used other forms to submit emails using examples that I googled but I can't get this form to process the request. Can someone tell me what i'm missing?



    my PHP Form:

    Code:
    <html>
    <HEAD>
    <TITLE>Demetrius's Customer Form</TITLE>
    
    </HEAD>
    <BODY BGCOLOR="#F6B28F">
    <HR>
    <H1><FONT FACE="Arial"><FONT COLOR="004E4A">Demetrius's Customer Form</FONT></H1>
    <HR>
    
    <p>In order to serve you, please tell us your problem:</p>
        <form method="post" action="mycustomeremail.php">
     
    <H3>THanks for visiting my customer service site I am so glad that i can serve you. </H3>
    
    <BR>Report your issue
    
    <fieldset>
    	<legend>Send Email</legend>
    
    <p>Email: <input type="text" name="email" size="60"></p>
    
    <p><label for="subject">Subject:</label><input type="text" id="subject"></p>
    
    <p><label for="message">Message:</label><br/>
    
    <TEXTAREA  id="message" name="message" rows="10" cols="70" WRAP="hard">
    </TEXTAREA>
    
     <p><input type=submit value="Submit"> <input type=reset value="Reset"></p>
    
    </FORM>
    </BODY>
    </HTML>
    PHP Script:

    Code:
    <html>
    <head>
      <title>My Customer Email</title>
    </head>
      <body>
    
      <?php
      $msg = "Thank you for allowing us to server you.";
    $today = date("02/16/2011");
    $msg = $msg . "<br/>" . $today;
    $name = $_POST["name"];
    $email = $_POST["email"];
    echo $name . " (" . $email . ")<br /> " . $msg;
      
    echo $msg;     //display message
      ?>
    
      </body>
    </html>
    Last edited by Dormilich; Feb 18 '11, 09:26 AM. Reason: please use [CODE] [/CODE] tags when posting code
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    you don’t have any PHP code (posted) that is sending an email.

    Comment

    • clain
      New Member
      • Feb 2007
      • 79

      #3
      you should use a PHP mail() or sendmail function to send mail. Both are not present in this this code.

      Comment

      • NetDynamic
        New Member
        • Feb 2011
        • 27

        #4
        mail($_POST['email'],"Subject text Here",$msg);

        done..
        Last edited by Dormilich; Feb 19 '11, 04:05 PM.

        Comment

        • NetDynamic
          New Member
          • Feb 2011
          • 27

          #5
          lol you dont need the [' but ok :)

          Comment

          Working...