V
V
Vladislav2016-01-15 06:31:42
PHP
Vladislav, 2016-01-15 06:31:42

php ubuntu mail ssmtp not sending?

Simple script not sending mail

mail("[email protected]", "hello", "message hello", $headers);

in apache2 errors.log logs:

ssmtp no recipients supplied - mail will not be sent

Although this is how it turns out to be sent from the terminal -
echo "Test message " | sudo ssmtp -vvv [email protected]

ssmtp.conf
mailhub=smtp.gmail.com:587
UseTLS=Yes
UseStartTLS=Yes
AuthMethod=LOGIN
AuthUser=**@gmail.com
AuthPass=**
FromLineOverride=yes

site works via https, ubuntu 14 04

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
seriogja, 2016-01-15
@seriogja

Good afternoon!
In php.ini registered sendmail_path = /usr/sbin/ssmtp -t -f? By defaultdefault: "sendmail -t -i"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question