Jump to content

PHP Mail works on shared but not on my dedicated server


brown2005

Recommended Posts

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?

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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.