Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.