brown2005 Posted February 11, 2011 Share Posted February 11, 2011 Hi, I have $to = '[email protected]'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: [email protected]'; 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? Link to comment https://forums.phpfreaks.com/topic/227412-php-mail-works-on-shared-but-not-on-my-dedicated-server/ 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? Link to comment https://forums.phpfreaks.com/topic/227412-php-mail-works-on-shared-but-not-on-my-dedicated-server/#findComment-1173029 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 = '[email protected]'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: [email protected]'; 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. Link to comment https://forums.phpfreaks.com/topic/227412-php-mail-works-on-shared-but-not-on-my-dedicated-server/#findComment-1173033 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. Link to comment https://forums.phpfreaks.com/topic/227412-php-mail-works-on-shared-but-not-on-my-dedicated-server/#findComment-1173051 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.