Fixing warning messages + loading email from configuration.php