Getting mail to work, help please
| From: | Chris Holloway | Date: | Mon, 10 May 2004 05:02:56 +0000 |
| Subject: | Getting mail to work, help please | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-13438@lists.php.net to get a copy of this message | ||
Hi;
I am new to PHP and have recently installed the latest version of PHP on my linux box. I am trying
to make the mail function work with my MTA Qmail. I have been testing by I wrote a simple
testingemail.php script like this
<?php
ini_set ('display_errors', 1);
mail('chris@hollowayfam.net','Testing','Testing -
Congragulations!','From:php@hollowayfam.net');
?>
This returns no errors but I never get the message. I dont think qmail does either. I'm
looking for what I would do to at least get an error message so I can tell what the problem is.
The other configuration changes I have made are:
/usr/local/lib/php/Mail/sendmail.php
I have changed the $sendmail_path to = '/var/qmail/bin/sendmail';
I have also tried that the default way.
I also changed the default configurations to no avail in /usr/local/lib/php/Mail/smtp.php
$var_auth = true;
$var_username='php@hollowayfam.net';
$var_password='imnottellng';
That is basically what I've done. Is there something obvious I am missing, or is there a way I
can make a better test script to get me an error and at lesst indicate the problem? I hate to ask
here but I have scoured the net and am about out of ideas.
TIA,
Chris Holloway