Changeset 1005131
- Timestamp:
- 10/10/2014 01:57:29 PM (11 years ago)
- Location:
- bcc-everything/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-bcc-everything.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bcc-everything/trunk/readme.txt
r1001162 r1005131 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 10 Automatically set Admin Bcc on every outgoing email. Useful for verifying that emails get sent correctly. 10 Blind copy (Bcc:) all outgoing emails to Admin. This can be used to verify the 11 correct sending of emails, or as a simple monitoring device. 11 12 12 13 == Description == 13 14 14 This plugin automatically sets Admin Bcc on every outgoing email. This uses the main blog email address as defined in 15 Settings -> General. There is nothing to configure in this plugin. Just activate and forget. 15 This plugin adds the primary blog email address as Bcc: recipient to every email 16 sent by WordPress. It uses the address defined in Settings -> General. There is 17 nothing to configure in this plugin. Just activate and forget. 16 18 17 19 == Installation == … … 22 24 == Changelog == 23 25 26 = 1.0.1 = 27 * fix: handling of string type headers 28 24 29 = 1.0 = 25 30 * First version. -
bcc-everything/trunk/wp-bcc-everything.php
r1001162 r1005131 3 3 * Plugin Name: BCC Everything 4 4 * Plugin URI: https://github.com/felixfischer/wp-bcc-everything 5 * Description: B cc alloutgoing emails to Admin6 * Version: 1.0 5 * Description: Blind copy (Bcc:) outgoing emails to Admin 6 * Version: 1.0.1 7 7 * Author: Felix Fischer 8 8 * Author URI: http://felixfischer.com … … 10 10 */ 11 11 12 add_filter( 'wp_mail', 'bcc_everything');12 add_filter('wp_mail', 'bcc_everything'); 13 13 14 function bcc_everything( $args) {14 function bcc_everything($args) { 15 15 $email = get_settings('admin_email'); 16 $args['headers'][] = 'Bcc: '.$email; 16 if (is_array($args['headers'])) { 17 $args['headers'][] = 'Bcc: '.$email; 18 } 19 else { 20 $args['headers'] .= 'Bcc: '.$email."\r\n"; 21 } 17 22 return $args; 18 23 }
Note: See TracChangeset
for help on using the changeset viewer.