Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Oct 2002
    Posts
    147
    Thanks
    31
    Thanked 2 Times in 2 Posts

    why wont my form e-mail me

    Hi i have this form

    but it wont mail me?

    any ideas?? thank s

    <?
    //echo "Title[$Title]";
    $txtTo = "hamandmushroom@hotmail.com";
    $txtFrom = "From: $email \r\n";
    $subject = "From www.l.co.za";
    $header = " \n\n";
    $footer = " \n";


    // continue with rest of form...
    $message .= "Name : $name \n\n";
    $message .= "Telephone : $tel \n\n";
    $message .= "Fax : $fax \n\n";
    $message .= "E-mail : $email \n\n";
    $message .= "Vehicle_required : $Vehiclerequired \n\n";
    $message .= "Start_of_hire : $Startofhire \n\n";
    $message .= "End_of_hire : $Endofhire \n\n";
    $message .= "Delivery_address : $deliveryaddress \n\n";
    $message .= "Collection_address : $Collectionaddress \n\n";


    $message .= "Enquiry : $enquiry \n\n";



    mail ($txtTo, $subject, $header . $message . $footer, $txtFrom);

    ?>

  • #2
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    probably because hotmail is rather picky and treats it as spam. probably because of your header. Try sending them to another adress to make sure it's not a problem with your server (--> i'm asuming you're on a *nix platform. If you're on a windowsmachine, then you need to do some extras)

    i know that my mails get accepted but don't have the code i use at hand.

    check out http://www.php.net/manual/en/function.mail.php for examplecode or else google for 'php mail hotmail header'
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •