Results 1 to 2 of 2
Hi,
I have a fresh debian etch installation and i installed php5 with apache2. I wrote a simple script to check if mail() function is working:
Code:
<?php
mail("abc@abc.com", "Test ...
- 10-22-2008 #1Just Joined!
- Join Date
- Mar 2007
- Posts
- 6
php mail() not working on fresh debian etch install
Hi,
I have a fresh debian etch installation and i installed php5 with apache2. I wrote a simple script to check if mail() function is working:
when i run it, i get this error message in /var/log/apache2/errorCode:<?php mail("abc@abc.com", "Test email 1", "Test message"); ?>
"Failed to open configuration file /etc/exim/exim.conf"
now i dont have exim installed but i thought that mail() function didnt rely on anything to send emails.
what's the best way to solve this problem so that i can send emails from php scripts?
- 10-22-2008 #2
you need to install and configure a mail transport agent, such as sendmail, postfix, or exim4


Reply With Quote
