brown2005 Posted February 11, 2011 Share Posted February 11, 2011 Hi, I have $to = 'rberbe2002@msn.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com'; mail($to, $subject, $message, $headers); which works fine on a shared hosting website I have, but not on a website I have on my dedicated server. Any ideas or suggestions please? Quote Link to comment Share on other sites More sharing options...
trq Posted February 11, 2011 Share Posted February 11, 2011 Have you installed and configured a mail server properly? What error are you getting? Quote Link to comment Share on other sites More sharing options...
brown2005 Posted February 11, 2011 Author Share Posted February 11, 2011 thats a good question, I am led to believe it has. but I would have to check with the host. $to = 'rberbe2002@msn.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com'; mail($to, $subject, $message, $headers); header("location: http://www.website.com/index.php?page=home&action=register"); thats what I have in my registration process php file. it does everything. just I do not recieve the mail. Quote Link to comment Share on other sites More sharing options...
trq Posted February 12, 2011 Share Posted February 12, 2011 I am led to believe it has. but I would have to check with the host. If it's a dedicated server you may need to do this yourself. Again however, what error are you getting? If your not getting any error then you need to ensure that error reporting is set to at least E_ALL and that display errors are on, then let us know if you receive any errors and what they are. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.