' . __('404 Notify email address' , 'four-o-four' ).'' , array(&$this, 'fof_notify_email_field') , 'general' ); } function fof_notify_email_field() { $fof_notify_email = get_option('fof_notify_email'); $admin_email = get_option('admin_email'); ?>

' . __('Hello,', 'four-o-four') . '

'; $message .= '

' . sprintf( __('Something on this page (' . $refering_url . ') returns a 404. Ideally you should track it down and fix the issue.', 'four-o-four'), $refering_url) . '

'; $message .= '

' . $compliment[array_rand($compliment)] . ' ☺

'; $message .= '

' . sprintf( __('This automated message was sent by 404 Notify for WordPress.', 'four-o-four'),$fofn_url) . '

'; $headers[] = 'Content-Type: text/html; charset=UTF-8'; $headers[] = __( 'From', 'four-o-four' ) . $website_name . ' <' . $admin_email . '>'; $headers[] = __( 'Reply-To:', 'four-o-four' ) . $admin_email; wp_mail( $send_to, $subject, $message, $headers ); } } } add_action('wp_footer', 'four_o_four');