Home php PHP Mail () setting

PHP Mail () setting

Author

Date

Category

The essence is that everything worked as it should. Then I had to reinstall PHP and it was found that letters were stopped. As it turned out, flew Sendmail . After installing it mail () earned, and returns a letter True , but the letters themselves are not sent. Registered sendmail_path = / usr / sbin / sendmail -t -i .

It’s almost completely sure that it just did not install some settings somewhere. Do not tell me where and what?


Answer 1, Authority 100%

As a mail server, I propose to use Postfix .

Installation in Ubuntu:

apt-get install postfix

choose
Internet Site

Edit php.ini

sendmail_path = "/ usr / sbin / sendmail -t -i"

Restart the web driver. Ready.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions