Ignore:
Timestamp:
Feb 14, 2007, 11:53:04 PM (17 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/include/picture_comment.inc.php

    r1809 r1818  
    210210      include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');
    211211
     212      $val_url = get_absolute_root_url().'comments.php?validate='.$comm['id'];
    212213      $del_url = get_absolute_root_url().'comments.php?delete='.$comm['id'];
    213214
     
    217218        .'IP: '.$comm['ip']."\n"
    218219        .'Browser: '.$comm['agent']."\n\n"
     220        .'Validate: '.$val_url."\n"
    219221        .'Delete: '.$del_url."\n";
    220222      if ($comment_action!='validate')
     
    224226          .'comments.php?validate='.$comm['id'];
    225227      }
    226       pwg_mail(get_webmaster_mail_address(),
    227         array('subject' => 'PWG comment by '.$comm['author'], 'content' => $content));
     228      pwg_mail
     229      (
     230        format_email('administrators', get_webmaster_mail_address()),
     231        array
     232        (
     233          'subject' => 'PWG comment by '.$comm['author'],
     234          'content' => $content,
     235          'Bcc' => get_administrators_email()
     236        )
     237      );
    228238    }
    229239  }
Note: See TracChangeset for help on using the changeset viewer.