Changeset 1818 for trunk/admin


Ignore:
Timestamp:
Feb 14, 2007, 11:53:04 PM (18 years ago)
Author:
rub
Message:

My last improvements before 1.7.0RC1.

Can include Cc & Bcc on mail.
Send mail to all administrators on new comment or new users.
Add validate link on new comment mail.
Try to detect if the NBM complementary content is HTML or plain text. With plain text, this content is convert to readable HTML.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/notification_by_mail.php

    r1809 r1818  
    227227    $is_action_send = ($action == 'send');
    228228
    229     if (!isset($customize_mail_content))
    230     {
    231       $customize_mail_content = $conf['nbm_complementary_mail_content'];
    232     }
    233 
    234229    // disabled and null mail_address are not selected in the list
    235230    $data_users = get_user_notifications('send', $check_key_list);
     
    244239      {
    245240        $datas = array();
     241
     242        if (!isset($customize_mail_content))
     243        {
     244          $customize_mail_content = $conf['nbm_complementary_mail_content'];
     245        }
     246
     247        if ($conf['nbm_send_html_mail'] and !(strpos($customize_mail_content, '<') === 0))
     248        {
     249          // On HTML mail, detects if the content are HTML format.
     250          // If it's plain text format, convert content to readable HTML
     251          $customize_mail_content = nl2br(htmlentities($customize_mail_content));
     252        }
    246253
    247254        // Prepare message after change language
Note: See TracChangeset for help on using the changeset viewer.