Troubleshooting simple sendmail form...

Discussion in 'PHP' started by moronic_kaos, Nov 22, 2010.

  1. #1
    To make a long story short, I haven't done anything with PHP in about six months, and I'm at that point where I'm having trouble with the most stupefyingly simple tasks...

    The following does not send any message at all, but it does relocate the user as it should. I tried a few different destination addresses. What am I doing wrong here?

    Note: I've blacked out some stuff with "%%%"

    
    <?php
    $from = "From: %%%@%%%.com";
    $subject = $_REQUEST['subject'] ;
    $message = $_REQUEST['message'] ;
    
    mail( "%%%@%%%.com",$subject,
    $message, $from );
    
    echo "
    
    <html>
    <head>
    <meta http-equiv='refresh'
    content='5; url=http://%%%.com'>
    <title>Message Sent</title>
    </head>
    <body>
    Your message has been sent.  Just a moment...
    </body>
    </html>
    
    ";
    php?>
    
    PHP:
    Thank you for your time! :cool:
     
    Last edited: Nov 22, 2010
    moronic_kaos, Nov 22, 2010 IP
  2. WSWD

    WSWD Well-Known Member

    Messages:
    1,420
    Likes Received:
    65
    Best Answers:
    1
    Trophy Points:
    175
    #2
    Sends mail on my server. Not sure what the issue might be, unless your server is blocking the mail command, or it's being flagged as spam and possibly deleted at your email addresses.
     
    WSWD, Nov 22, 2010 IP
  3. tnd8

    tnd8 Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    tnd8, Nov 22, 2010 IP