Answer the question
In order to leave comments, you need to log in
Mail is not sent on Bitrix, how to set it up?
I have vmbitrix 7 on the virtual machine. But I haven’t caught up with why my mail is not sent.
In php-console already entered
if(mail("[email protected]", "TEST SUBJECT", "TEST BODY"))
echo "Почтовая система работает!";
else
echo "Неудача, почтовая система не работает, попробуйте еще!";
account default
logfile /home/bitrix/www/.msmtp.log
host mail.bitrixsoft.com
port 25
from [email protected]
auth off
Answer the question
In order to leave comments, you need to log in
Not quite a correct question, judging by the listing, the mail () function does not work for you, and as a result, mail is not sent.
Check all necessary settings, including sendmail path settings, link
Next, you need to form additional_headers
normally Like
this
$headers = "MIME-Version: 1.0\n";
$headers .= "From: =?$charset?B?".base64_encode($fromName)."?= <$from>\n";
$headers .= "Content-type: text/html; charset=$charset\n";
$headers .= "Content-Transfer-Encoding: base64\n";
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question