US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > ISPmanager > Troubleshooting


Reply
 
Thread Tools
Old 05-27-2010, 03:28 AM   #1
Junior Member
 
Join Date: May 2010
Posts: 2
Chains is on a distinguished road
Default PHP mail() function does not work on ISPManager servers

We've used ISP Manager for a while and have never been able to get mail() to work in php. This means that blogs installed on the server cannot accept contact form emails and comment notifications don't arrive.

How do we fix it so the server can send mail? This works in a default installed lamp stack, but even after numerous Google searches I can't find a solution.

Thanks.
Chains is offline   Reply With Quote
Old 05-27-2010, 07:43 PM   #2
Junior Member
 
Join Date: May 2010
Posts: 2
Chains is on a distinguished road
Default

This has nothing to do with Yahoo mail. The server needs to send mail using the PHP mail() function. The server also sends email with mail boxes for users of the various domains on the server like:user@example.com.

This also has nothing to do with Outlook. This is the server not being able to run this code: test.php

<?php mail ("you@example.com","test subject","This is a message.") ?>

Last edited by Chains; 05-27-2010 at 07:53 PM.
Chains is offline   Reply With Quote
Old 05-28-2010, 04:57 AM   #3
ISPsystem team
 
slava's Avatar
 
Join Date: May 2008
Location: ISPsystem
Posts: 588
slava is on a distinguished road
Default

What you see in the email server logs? See /var/log/maillog or /var/log/exim4/mainlog when you run php script with email function.
slava is offline   Reply With Quote
Old 08-06-2010, 05:18 AM   #4
Junior Member
 
Join Date: Aug 2010
Posts: 2
natedigby21 is on a distinguished road
Default

Quote:
/var/log/maillog
Sorry but I cannot see this one here.
__________________
Nate Digby
natedigby21 is offline   Reply With Quote
Old 08-06-2010, 05:19 AM   #5
Junior Member
 
Join Date: Aug 2010
Posts: 2
natedigby21 is on a distinguished road
Default

My bad, did not notice the other one:

/var/log/exim4/

found it.. Got to get it running.

Thanks for help.

Regards,
__________________
Nate Digby
natedigby21 is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:05 PM.