ok guys, i need to send a web form to an email address using a php script, but for some reason, when i execute the script nothing happens. at first i tried to write the entire thing, but when i realized that it wasn't working, i trouble shot it to the best of my abilities. since nothing seemed to fix the problem, i finally decided to strip the script down to its most primitive structure: the "mail" command. but even without the variables, bells and whistles, and finishing touches, it still won't work. here's the script i'm using, word for word, character for character (remember i stripped it down to only one command).

<?php

mail("foobar@fakesite.xxx", "This is a test message", "This is a test body");

?>

now, i could understand thinking i was doing something wrong if this was a whole mess of strings and variables and a dozen other commands and external documents and various other scripting in the same page (et cetera, et cetera)...but this is only one command in a single PHP document. no matter in what manner i call upon the script, nor in what fashion the punctuation is rearranged...THIS STUPID SCRIPT JUST WON'T COMPLY!!!

Immediate and utmost gratitude to anyone who may be able to help me on this subject,
-Joshua

🆒

    Let's help it tell us if it knows anything about what's going on:

    <?php
    ini_set('display_errors', 1);
    error_reporting(E_ALL);
    
    $result = mail("foobar@fakesite.xxx", "This is a test message", "This is a test body");
    
    if(!$result)
    {
       echo "<p>The mail() command failed. Hopefully you got some debug info before this message.</p>";
    }
    else
    {
       echo "<p>It seems like mail() worked.</p>";
    }
    ?>
    
      Write a Reply...