Try tuning the behaviour of mail() using php.ini.

http://us2.php.net/manual/en/mail.configuration.php

-- 
| Jeremy Chadwick                                jdc at parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |

On Sat, Jun 28, 2008 at 11:29:54AM +0530, Chandranshu . wrote:
> Hi,
> 
> We have to provide a shared server environment to some of my clients.
> We are using Apache 2.2.3 and suPHP 0.6.3. While everything else works
> properly, a call to mail() method under suPHP is neither sending mails
> nor generating any errors. I have verified that the mail() method
> works properly when used with mod_php.
> 
> I am not getting any errors in my error logs. suphp_log shows only  this line:
> [Sat Jun 28 01:55:50 2008] [info] Executing
> "/mnt/glusterfs/apache/hosting-dir/56/156/mail.php" as UID 2156, GID
> 2156
> 
> The mail.php is a simple script:
> <?php
> 
> $to = "[EMAIL PROTECTED]";
> $subject = "Test mail";
> $message = "Hello! This is a simple email message.";
> $from = "[EMAIL PROTECTED]";
> $headers = "From: $from";
> mail($to,$subject,$message,$headers);
> echo "Mail Sent."
> 
> ?>
> 
> 
> Searching the archives showed up a previous post with similar doubts
> but had no replies. Any help to will be greatly appreciated.
> 
> Thanks and regards
> Chandranshu
> 
> _______________________________________________
> suPHP mailing list
> suPHP@lists.marsching.biz
> http://lists.marsching.com/mailman/listinfo/suphp

_______________________________________________
suPHP mailing list
suPHP@lists.marsching.biz
http://lists.marsching.com/mailman/listinfo/suphp

Reply via email to