Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9108113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T02:44:07+00:00 2026-06-17T02:44:07+00:00

I have installed apache with PHP Version 5.3.3-7+squeeze14 and I can’t get mail to

  • 0

I have installed apache with PHP Version 5.3.3-7+squeeze14 and I can’t get mail to work, this is the code i’m using:

error_reporting(E_ALL|E_STRICT);
ini_set('display_errors', 1);
echo 'I am : ' . `whoami`;
$result = mail('*****','Testing 1 2 3','This is a test.');
echo '<hr>Result was: ' . ( $result === FALSE ? 'FALSE' : 'TRUE') . $result;
echo '<hr>';
echo phpinfo();

this is response I get:

I am : www-data
Result was: FALSE

In my php.ini i have edited two lines, this is how hey look right now:

sendmail_path = /usr/sbin/sendmail -t -i -f something@****.lt
sendmail_from = something@****.lt

/var/log/mail.log is completely empty even thou I have been trying various things for over an hour now.

I’m fairly new to linux so i’m pretty sure that I’m missing something obvious just can’t seem to find in…

EDIT Forgot to mention that i do restart apache every time i make some changes to my configuration, and I’m using Debian 6.0

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T02:44:08+00:00Added an answer on June 17, 2026 at 2:44 am

    You need to install postfix or sendmail (Postfix would be preferred)

    The php mail() function needs an MTA in any way.

    Or you can use the complicated way and script an smtp Mailclass: email.about.com/od/emailprogrammingtips/qt/…

    Or you can use phpmailer: phpmailer.worxware.com.

    But to be able to use mail() you need an mta (Aka postfix or sendmail)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed xampp on Windows7(64bit).I want to work with PHP, Apache and MySql.
I have WAMP server installed in my PC. Apache Version : 2.2.17 PHP Version
I have installed php/apache (version 5.3.8) via MacPorts, and I am getting the error:
i have installed cakephp 1.3 which uses the following: Apache Version :2.2.21 PHP Version
I have just installed CentOS, Apache and PHP. When I visit my site http://example.com/myapp/
I have installed apache on my server however I can not browse my website
I have installed apache-tomcat-6.0.35-windows-x86 in my system. How can I configure it and set
I have the following version being installed: Apache::SmallProf - 0.09 Apache::Registry - 2.01 Devel::SmallProf
I have a WAMP 2.0 server installed on Win XP . Apache version :
I have installed Vertrigo Server with [ Apache 2.0 ] & [ PHP 5.2.14

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.