The problem is that mailing on my site didt work. There is code to sending mail
....
$params['subject'] = $mail_subject;
$params['body'] = $mail_body;
$to = 'dmitriikotow@gmail.com'
$from = 'mail@ckeverest.ru';
$lang = language_default();
drupal_mail('everest_mail', 'html_mail', $to, $lang, $params, $from, false);
....
There is custom mail-module code
<?php
class EverestMailSystem extends DefaultMailSystem {
public function format(array $message) {
$message['body'] = implode("
", $message['body']);
$message['body'] = drupal_wrap_mail($message['body']);
return $message;
}
}
function everest_mail_mail($key, &$message, $params) {
switch ($key) {
case 'html_mail':
$message['headers']['Content-Type'] = 'text/html; charset=UTF-8;';
$message['subject'] = $params['subject'];
$message['body'][] = $params['body'];
break;
}
}
?>
At first glance, everything should work. There is a suspicion that the problem is outside of the module, as sending messages to work until the last update the appearance of the site (I have not participated in the update). As the module was not written by me, so I need the opinion of a more experienced programmer than I am.
In any case, I would like to know. Where can I find useful in my case the logs site? And with their help to catch a mistake?
Thank you so much.