Current time: 12-28-2024, 04:12 AM Hello There, Guest! (LoginRegister)


Post Reply 
PHP mail() doesn't send email
Author Message
cmendes0101 Offline
Junior Member
*

Posts: 16
Joined: Dec 2009
Reputation: 0
Post: #1
PHP mail() doesn't send email
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.
03-09-2010 04:11 AM
Find all posts by this user Quote this message in a reply
nuke3d Offline
Junior Member
*

Posts: 107
Joined: Sep 2007
Reputation: 1
Post: #2
RE: PHP mail() doesn't send email
Well, I'd say it's because you're sending mail to test@test.com. There is nothing that disables mail by default.
03-09-2010 07:00 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #3
RE: PHP mail() doesn't send email
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.
03-09-2010 07:04 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)