Лог отправки почты с 1С-Битрикс

Напишем скрипт, который будет вести лог отправки почты из 1С-Битрикс

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);
}

Лог отправки почты с 1С-Битрикс

8 мыслей о “Лог отправки почты с 1С-Битрикс

  • 22.02.2024 в 09:58
    Permalink

    console.log(«test»)

  • 22.02.2024 в 09:59
    Permalink

    123

  • 12.03.2024 в 11:47
    Permalink

    Wow, awesome weblog format! How long have you ever been blogging for?
    you make running a blog glance easy. The entire glance of your web site is wonderful,
    let alone the content! You can see similar here najlepszy sklep

  • 14.03.2024 в 16:11
    Permalink

    We are a gaggle of volunteers and starting a brand new scheme in our
    community. Your website provided us with helpful info
    to work on. You have done a formidable task and our entire neighborhood might be grateful to you.
    I saw similar here: Dobry sklep

  • 22.03.2024 в 07:07
    Permalink

    I visited many blogs however the audio feature for audio songs existing at this web site is genuinely marvelous.
    I saw similar here: Dobry sklep

  • 03.04.2024 в 12:39
    Permalink

    Hey there! Do you know if they make any plugins to assist with SEO?
    I’m trying to get my blog to rank for some targeted keywords
    but I’m not seeing very good gains. If you know of any please share.

    Cheers! You can read similar blog here: Backlink Building

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *