Jump to content

PHP Mail works on shared but not on my dedicated server


brown2005

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.