[инфа]

от: lenta 2020-10-14 13:42:02

mail() php linux msmtp
[просмотров|126] linux
1. aptitude install msmtp

2. touch /etc/msmtprc

3. chmod 600 /etc/msmtprc

4. chown www-data:www-data /etc/msmtprc

5. nano /etc/msmtprc

[i]defaults
tls on
auth on
tls_starttls on
tls_certcheck off
logfile /var/log/msmtp.log
timeout 20

account yandex
logfile /var/log/msmtp.log
host smtp.yandex.ru
port 587
from YOU_ACCOUNT@yandex.ru
keepbcc on
auth on
user YOU_ACCOUNT@yandex.ru
password YOU_PASSWORD
tls on
tls_starttls ...
загрузить
ещё
fizord.ru © 2021
Андрей Исаков