lolwut
20-01-2008, 09:49 PM
Right well, I've tryed everything to make a mailer script I've made work, but it just wont.
Here's my code:
<?php
$to = "[email protected]";
$subject = "Testinggggg";
$message = "Hey!\nTest mail innit.";
$headers = "From: Tanzim.org <[email protected]>";
mail($to,$subject,$message,$headers);
echo("Message headed " . $subject . " was sent to " . $to . ".");
?>
I go to my webmail account thingy ([email protected]) and there's nothing in the inbox.
Is there some setting I need to change in cPanel for mail() to work?
+Reps to any help atall.
Here's my code:
<?php
$to = "[email protected]";
$subject = "Testinggggg";
$message = "Hey!\nTest mail innit.";
$headers = "From: Tanzim.org <[email protected]>";
mail($to,$subject,$message,$headers);
echo("Message headed " . $subject . " was sent to " . $to . ".");
?>
I go to my webmail account thingy ([email protected]) and there's nothing in the inbox.
Is there some setting I need to change in cPanel for mail() to work?
+Reps to any help atall.