Answer the question
In order to leave comments, you need to log in
Ssmtp not sending emails via mail()?
Configured ssmtp to send via Yandex smtp (pdd).
Sends from the console. But not over the web.
ssmtp.conf:
[email protected]
Mailhub=smtp.yandex.ru:465
#RewriteDomain=
#Hostname=name
#FromLineOverride=YES
[email protected]
AuthPass=pass
UseTLS=YES
#UseSTARTTLS=YES
root:[email protected]:smtp.yandex.ru:465
www-data:[email protected]:smtp:yandex.ru:465
Answer the question
In order to leave comments, you need to log in
I recommend msmtp, unlike ssmtp it is not abandoned by the author and works great
You need to specify the path to ssmtp in the php configuration file in the sendmail_path parameter. To determine the full path, run the "which ssmtp" command (without the quotes).
It will look like this: sendmail_path = /usr/sbin/ssmtp -t -i (your path may be different).
www-data:[email protected]: smtp:yandex.ru :465
try to make two line breaks in the file, write a message on the third then it will work
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question