B
B
BarneyGumble2020-07-06 19:42:49
1C-Bitrix
BarneyGumble, 2020-07-06 19:42:49

Why does Bitrix not receive a password recovery email?

Bitrix does not receive a password recovery letter. When you try to recover your password, it says "The control string, as well as your registration data was sent to your email. Please wait for the letter, as the control string changes with each request."

But the letter does not come.

I would have thought that this is a global problem of sending mail from the site, but I installed this module, configured SMTP and the test sending was successful, the letter arrived - https://webprostor.ru/learning/course/course6/index

Why is it not sent Is it a password recovery email? Can the settings for sending this letter be taken not from the module indicated above, but from another place?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
BarneyGumble, 2020-07-08
@BarneyGumble

The problem was solved by setting msmtp on the server

Y
Yaroslav Alexandrov, 2020-07-07
@alexyarik

Ask the hosting for mail logs and see if there is a send, what is the response of the receiving mail server.
Enable logging of mail sent from Bitrix to the server, see if there is a password recovery letter
in the init.php file. But be careful, you must have ftp access for operations with init.php

function custom_mail($to,$subject,$body,$headers) { 
$f=fopen($_SERVER["DOCUMENT_ROOT"]."/maillog.txt", "a+"); 
fwrite($f, print_r(array('TO' => $to, 'SUBJECT' => $subject, 'BODY' => $body, 'HEADERS' => $headers),1)."\n========\n"); 
fclose($f); 
return mail($to,$subject,$body,$headers); 
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question