diff --git a/email/views/structure/header.php b/email/views/structure/header.php
index <HASH>..<HASH> 100644
--- a/email/views/structure/header.php
+++ b/email/views/structure/header.php
@@ -250,7 +250,8 @@
     <div class="padder">
         <?php
 
-        if (nailsEnvironment('not', 'PRODUCTION')) {
+
+        if (\Nails\Environment::not('PRODUCTION')) {
 
             ?>
             <div id="non-production-environment">
Tidying up, removing deprecated function calls