mail()
Posted: Sun Nov 27, 2005 1:51 pm
im trying to get a register page where when you register it puts a random 36 digit code in a database, then it emails you this code so that you can activate an account and all that fun stuff... but for some reason the mail function isnt working
its giving me the success message "mail sent successfully to blayne4k@gmail.com" but im not receiving the message, i tried other email addresses as well and tried taking out the header information, it just wont work
EDIT: I thought it may be helpful to post the PHP Version which is 4.4.1
Code: Select all
<?PHP
$to = 'blayne4k@gmail.com';
$subject = 'testing';
$message = 'just seeing if this works';
if (mail($to,$subject,$message, "From: blayne4k@gmail.com")){
echo "Mail sent successfully to $to.";
}
else{
echo "Email Didnt Send";
}
?>EDIT: I thought it may be helpful to post the PHP Version which is 4.4.1