Hi, I've read through everything that you two have tried and tried them myself as I have a similar issue to dzgyrl in that while my forms and php code I belive to be correct won't email ANYTHING regardless of what the To, From etc is set as.
Here's is what I've got.
<PHP>
//New code.
$name = $POST['name'];
$wherehear = $POST['wherehear'];
$contactnumber = $POST['contactnumber'];
$email = $POST['email'];
$message = $_POST['message'];
//End new code.
$bodystuff = "$name used the contact page\n\nName: $name\nReffered: $wherehear\nPhone_Number: $contactnumber\nEmail: $email\n\n$message";
mail( "my@email.com", "Message from website contact form.",
$bodystuff, "From:$email" );
header( "Location: contact_thanks.htm" );
</PHP>
With a html form alone the lines of (below) but with more inputs for name, wherehear etc which I have checked and recheck so that the name="name" and $name = $_POST['name']; all fit correctly.
<form action="send_email.php" method="post" target="_self">
<input name="email" type="text" />
<input name="submit" type="submit" id="submit"
value="Submit" />
</form>
However, here's the problem, I submit the form it thinks about it, and goes to my .php file, but unfortunatly I recieve no email!
Facts: - I'm using a hotmail email account as the from and to. I have a personal me@domain.id.au email account if that helps.
- I checked my phpinfo on server and it says, sendmail_from
| php@mail1.example.com
- disable_functions | fsockopen
So when I tried your nifty mailtest.php I got some errors, however I took out the fsockopen (and close bits of code) and it seemed to work happily in that I got the mail sent successfully message.
Yet again though no email ever got to my email inbox 🙁
After a bit of chopping and changing of codes and email addresses and checking my codes, I successfully got zero emails from any code...
So, if anyone could suggest some SUPER code for me to test or some settings that may need checking/changing PLEASE let me know.
Thanks.