+ Reply to Thread
Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By misson

Thread: Sending email via contact form

  1. #1
    azdrian1837 is offline x10Hosting Member azdrian1837 is an unknown quantity at this point
    Join Date
    Aug 2010
    Posts
    4

    Sending email via contact form

    hello everyone,
    I create a contact form on my website but the mail are not sending and am not getting any error could someone please help !! thank you.

    here's my code

    send.php:
    Code:
    <?php //send.php
    require ('includes/config.inc.php'); 
    $name = $_POST['name'];
    $email = $_POST['email'];
    $message = $_POST['message'];
    $formcontent= "Name: $name /n Message: $message";
    $recipent= "azdrian18@hotmail.com";
    $subject= "Contact Form";
    $mailheader="From: $email";
    mail($recipent,$subject,$formcontent,$mailheader)or die("error in sending mail");
    echo "thank you!";
    ?>
    and the contact form:

    Code:
    <?php //contact.php
     $page_title ='Contact us'; 
     
    include ('includes/header.html');
    require ('includes/config.inc.php');
    include ('includes/sidebar.php');
    ?>
    <h1>Contact Page</h1>
    
    
    <p>Quam, praesentium dignissim eros? Quis, saepe! Mollitia eiusmod nesciunt? Corrupti 
    occaecati aptent, placeat omnis. Blanditiis mollit alias ipsum? Expedita pariatur.</p>
    
    
     <!-- Start of FORM -->
    <form method="post" action="send.php">
    <p>Name:<input type="text" name="name"/></p>
    <p>Email:<input type="email" name="email"/></p>
    <p>Message:</p><textarea name="message" rows="6" cols="25"></textarea><br/ >
     <input type="submit" name="send" value="submit"/>
    </form>
    <!-- End of FORM --> 
      
    
    
    <?php include ('includes/footer.html'); ?>

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Sending email via contact form

    Search first. There are a number of threads (some in the last few weeks) that cover this exact issue. Read over them and post back only if they don't resolve your problem.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    azdrian1837 is offline x10Hosting Member azdrian1837 is an unknown quantity at this point
    Join Date
    Aug 2010
    Posts
    4

    Re: Sending email via contact form

    i have already search through the forums but unfortunately i didn't find any post to help me find a solution

  4. #4
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Sending email via contact form

    How hard did you look? The thread currently before this one ("PHP Form Scrip - Not forwarding form information to email...") applies.
    care36182 likes this.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread

Similar Threads

  1. Mail sending via Contact Us Form does not work
    By ramesh_rahul in forum Free Hosting
    Replies: 0
    Last Post: 08-01-2011, 06:06 AM
  2. [split] Sending email contact form from flash using PHP
    By real_twenty_nine35 in forum Programming Help
    Replies: 1
    Last Post: 06-03-2011, 11:45 AM
  3. PHP Contact Form Not Sending Email
    By Pastor.Shaun in forum Free Hosting
    Replies: 1
    Last Post: 05-05-2011, 02:22 PM
  4. Sending email contact form from flash using PHP
    By fllrfth in forum Programming Help
    Replies: 3
    Last Post: 09-12-2010, 11:31 AM
  5. Trouble with sending Email from Contact form.
    By weathersnap in forum Free Hosting
    Replies: 2
    Last Post: 06-12-2010, 04:09 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers