Find the answer to your Linux question:
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 ...
  1. #1
    Just 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:
    Code:
    <?php
    	mail("abc@abc.com", "Test email 1", "Test message");
    ?>
    when i run it, i get this error message in /var/log/apache2/error
    "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?

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    you need to install and configure a mail transport agent, such as sendmail, postfix, or exim4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •