Jump to content

HNX

Members
  • Posts

    102
  • Joined

  • Last visited

    Never

Posts posted by HNX

  1. ok so i made a contact form and i added php with it and this is my code

    <?php
    // Contact subject
    $subject ="$subject";
    // Details
    $message="$detail";
    
    // Mail of sender
    $mail_from="$customer_mail";
    // From
    $header="from: $name <$mail_from>";
    
    // Enter your email address
    $to ='myemail@gmail.com';
    
    $send_contact=mail($to,$subject,$message,$header);
    
    // Check, if message sent to your email
    // display message "We've recived your information"
    if($send_contact){
    echo "Your message has been received. A Response will be sent to you as soon as possible. Thank You!";
    }
    else {
    echo "ERROR";
    }
    ?>
    

     

    and when i preview my html page and submit some in to test it it works, this is what it says:

     

    "; // Enter your email address $to ='noorihamayun@gmail.com'; $send_contact=mail($to,$subject,$message,$header); // Check, if message sent to your email // display message "We've recived your information" if($send_contact){ echo "Your message has been received. A Response will be sent to you as soon as possible. Thank You!"; } else { echo "ERROR"; } ?>

     

    is someone could please help me it would be VERY appreciated

     

    Thanks,

    HNX

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.