Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have recently set up a CentOS 6.4 server using the minimalistic installation. I have a working version of PHP up and running, but I want to be able to use the mail() function in PHP.

  • What do I need to make it work (mailservers, scripts, what is needed?)
  • How do I proceed installing whats needed?
share|improve this question
You probably will need to start with installing sendmail – kobaltz Aug 5 '13 at 22:38
sendmail is installed, where do I go next? I am clueless. – Simon Carlson Aug 6 '13 at 0:00
You really shouldn't be interfacing with mail() directly. You would be better off with Zend_mail, PHPMailer, or some other library. Composing messages correctly, so you get get flagged as SPAM is not trivial. Ideally you will be using one of these libraries through a properly configured mail server, instead of just relying on poorly configured local sendmail. – Zoredache Aug 6 '13 at 0:49
Thanks for your input. How do I achieve this though? I'm a complete beginner to all of this so I'm very, very clueless... – Simon Carlson Aug 6 '13 at 1:10
If you do not have problems using it, are you receiving any kind of errors? – kobaltz Aug 6 '13 at 1:51

You must log in to answer this question.

Browse other questions tagged .