I have an e-mail form that I am trying to test out…but nothing happens when I click the send mail button…after searching online for some time, I have found several “test” php files which are supposed to test whether my server allows e-mail…but I cannot figure out how to execute these test pages…all the sites say is to change the e-mail to reflect my domain, and upload to the server…and open the php file in a web browser…
When I try this, I get “The page cannot be found” HTTP 404 error…any ideas as to why? Is this because e-mail is disabled on my server?
<?php
//This is just a test script to check if the server can send an email.
//Upload this page to your server, open in a browser, check your mailbox
$myEmail = "paul@expocad.com"; //change to your own email
$myServer = "tech@expocad.com"; //change to your domain
mail($myEmail, "test message", "test message", "From: ".$myServer);
print "MAIL SENT";
?>
and
<?
mail("paul@expocad.com","test","Ok, it works");
?>
neither one of those worked…!