nano /etc/msmtprc
account default from XXXXX@yandex.ru host smtp.yandex.ru port 587 protocol smtp auth login user XXXXX@yandex.ru password XXXXXXXXX logfile /var/log/msmtp.log tls off tls_starttls off tls_certcheck off #tls_trust_file /etc/ssl/certs/ca-certificates.crt
php -r "mail('test@email.com', 'Test', 'Test');"