Created
May 18, 2018 11:26
-
-
Save devoltt/72b60e870fc65cbab1ed6af3a19c59bc to your computer and use it in GitHub Desktop.
Заглушка писем Bitrix24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
/* | |
* Add to /local/php_interface/init.php | |
*/ | |
use Bitrix\Main\Diag\Debug; | |
function custom_mail($to, $subject, $message, $additional_headers, $additional_parameters) { | |
$fields = array( | |
'datetime' => date('d.m.Y H:i:s'), | |
'to' => $to, | |
'subject' => $subject, | |
'message' => $message, | |
); | |
Debug::writeToFile($fields, '', 'CUSTOM_MAIL_DEBUG.log'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment