Ok i've made a script which sends an email and it said it works but it didn't end up sending the email (i used mail(); and filled everything in correctly). At first i thought it was my coding so i made a test which basically did:
<?
$to = "example@example.com";
$subject = "PHP test";
$body = "Hi daniel,\n\nTest 1";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
}
else {
echo("<p>Message delivery failed...</p>");
}
?>
Now unless anybody can find a error in this, it should send me an email. I got none and none in spam ect.
So i contacted the host they said i can't configure the php.ini file and it should be correctly configured (my host are complete... you know what i mean).
So personally i think it's their fault, but i have a vBulletin forum and it uses email validation and it sends emails out perfectly fine and it's all run on the same server so surely it wouldn't work if the php.ini isn't right?
I just don't know what's wrong, im pretty sure it's not my code, it's not my email either... and im not sure if its the php.ini file.
Is there any other way of sending emails that doesn't require the need to edit the php.ini file?
Thanks