B
B
brar2020-04-29 19:15:15
1C-Bitrix
brar, 2020-04-29 19:15:15

Sending mail 1s: Bitrix?

Bitrix stock, default.
Configured on the msmtp server.
Created symlinks:

ln -s /usr/bin/msmtp /usr/sbin/sendmail
ln -s /usr/bin/msmtp /usr/bin/sendmail
ln -s /usr/bin/msmtp /usr/lib/sendmail

The settings are in /etc/msmtprc (permission 644).
Specified in php.ini
sendmail_path = "/usr/bin/msmtp -t"
Command
php -r "mail('[email protected]', 'Test', 'Test');"

fulfills. Also, it works on behalf of any other user. The mail is coming.

However, both bitrix_server_test.php and "Settings - Tools - System Check" give an error that the php mail function does not work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
idmrty, 2020-04-29
@brar

So the web server is running with a different version of PHP and a different php.ini.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question