';
$message .= sprintf( __('Something on this page leads to a 404. Ideally you should track it down and either fix or remove it.', 'four-o-four'), $refering_url);
$message .= '
';
$message .= __('Have a great day.', 'four-o-four');
$message .= '
';
$message .= sprintf( __('This message was automatically sent by 404 Notify for WordPress.', 'four-o-four'),$fof_url);
$message .= '';
$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( $to, $subject, $message, $headers );
}
}
}
add_action('wp_footer', 'four_o_four');