Answer the question
In order to leave comments, you need to log in
How to send messages?
Good afternoon, many of my users do not receive messages to Google mail, as well as Mail, although they come to Yandex instantly.
Here is my message sending script:
mail($user->email, $title, $message,
"MIME-Version: 1.0\r\n"
."Content-type: text/html; charset=utf-8\r\n"
."X-Mailer: PHP/" . phpversion()
);
location ~ \.php$ {
fastcgi_index index.php;
fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f [email protected]<domain.zone>";
fastcgi_pass unix:/var/www/php-fpm/gamepost.sock;
fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
try_files $uri =404;
include fastcgi_params;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question