Saturday, October 29, 2011

Simplest solution to enable PHP mail() function under Ubuntu

If PHP mail() function doesn't works on your development desktop and your Apache error log shows something like "sh: /usr/sbin/sendmail: not found" - then you obviously need to install "sendmail" in order to fix that :)

Just run the following command in Ubuntu:

# apt-get install sendmail

To configure Sendmail for your needs use (see appropriate configuration scripts in output):

# sendmailconfig 

Writing this post for people who asking me quite frequently: "Why PHP mail() function doesn't works after I've successfully installed LAMP development environment on my Ubuntu desktop?"

11 comments:

  1. Very much useful to me. Thanks.

    SEO Company

    ReplyDelete
  2. Such a nice blog, you really provide me some great information. i am going to bookmark this blog, share with my friends and will definitely visit here again. Thanks for your article.
    Jimmy Wilson-Superman Leather Jacket Smallville

    ReplyDelete
  3. Outstanding post I like ones content; really like how you explained everything, you are doing a great job the majority of other people as you as a result of of which style of informative sites produce consciousness to be able to us related to lots of things. My spouse and i examine various other exciting blogs from your websites and also I'm a whole lot serious along with your writing a blog skills, My partner and i likewise did start to create document this also variety talk definitely guide me personally available. We by now book-marked your current web site and also contributed your own websites to be able to the fellow workers besides us yet these including your own blogging and site-building knowledge, hope a person write a lot more exciting information sites similar to this one along with all the best . for your potential weblogs.
    Jimmy Wilson-Dean Winchester Coat

    ReplyDelete
  4. Wow what a nice blog is it! Excellent in formation and nice article about PHP. Thanks again blog owner.
    Best Seo company Houston TX

    ReplyDelete
  5. Its useful.. Thanks for posting.

    ReplyDelete
  6. Great, thanks!!!

    Now its working :)

    ReplyDelete
  7. We have the result to your search " questions when hiring a remote software engineer ". Visit our website to get the result!

    ReplyDelete
  8. Ways & Works Consulting is an ISO 9001:2015 certified HR Consulting Firm, Manpower Recruitment and Practical Training firm career with an aim to provide value aided service to employersTop Manpower Recruitement company in india . with an in-depth understanding of their requirements. We are working as a perfect bridge between the employer and employee to fulfil their needs by placing the best suitable at place.

    ReplyDelete