ispCP - Board - Support
PHP mail() doesn't send email - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: PHP mail() doesn't send email (/thread-9924.html)



PHP mail() doesn't send email - cmendes0101 - 03-09-2010 04:11 AM

Is there some setting that is not allowing email to be send with in PHP by a default installation of ISPCP?

Here is what is being ran:
$emailTo = "test@test.com"
$subject = 'General Inquiry';
$body = "Name: $name \n\nEmail: $email \n\nSubject: $subject \n\nPhone: $phone \n\nComments:\n $comments";
$headers = 'From: Website User <'.$emailTo.'>' . "\r\n" . 'Reply-To: ' . $email;

mail($emailTo, $subject, $body, $headers);

It runs with no errors but never gets received.


RE: PHP mail() doesn't send email - nuke3d - 03-09-2010 07:00 PM

Well, I'd say it's because you're sending mail to test@test.com. There is nothing that disables mail by default.


RE: PHP mail() doesn't send email - kilburn - 03-09-2010 07:04 PM

If the address is real and you've just put "test@test.com" here to hide the real mail, check the /var/log/mail.log and follow the debugging e-mail problems guide.