I am running LAMP on my Ubuntu 10.04 Desktop linux and using it as a development machine.

I need to send emails from my php pages, but it seems that the sendmail php command needs sendmail installed on the laptop.

I understand I can install sendmail by sudo aptitude install sendmail, but don't know how to configure it as after installing it and restarting apache2, sendmail from php still does not work and returns no errors at all.

I am assuming sendmail needs to be configured after installing it, before it can be used in php.

Therefore, my question is, how do I install and configure sendmail on ubuntu 10.04 so I can use sendmail via cli at least.


hope this will help help http://www.sendmail.org/~ca/email/doc8.12/op.html

I haven't tried sendmail, i use postfix.

  • why use postfix over sendmail? can I send emails from php using postfix? would it be easier to install and configure postfix? May 6 '11 at 11:09
  • yes, its very easy.
    – dsaint
    May 9 '11 at 14:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.