diff --git a/lib/SimpleSAML/Utils/EMail.php b/lib/SimpleSAML/Utils/EMail.php
index ef2a965572471170bb67bb82d9976f74acf3d576..08c70df75adcc5ed5dddbbcb82fe5f13c9cf9414 100644
--- a/lib/SimpleSAML/Utils/EMail.php
+++ b/lib/SimpleSAML/Utils/EMail.php
@@ -256,7 +256,7 @@ class EMail
         $newui = $config->getBoolean('usenewui', false);
 
         if ($newui === false) {
-            return '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+            $result = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
@@ -274,11 +274,17 @@ pre {
 	</style>
 </head>
 <body>
+<h1>' . htmlspecialchars($this->mail->Subject) . '</h1>
 <div class="container" style="background: #fafafa; border: 1px solid #eee; margin: 2em; padding: .6em;">
-' . $this->text . '
-</div>
-</body>
-</html>';
+<blockquote>"' . htmlspecialchars($this->text) . '"</blockquote>
+</div>';
+            foreach ($this->data as $name => $values) {
+                $result .= '<h2>' . htmlspecialchars($name) . '</h2><ul>';
+                foreach ($values as $value) {
+                    $result .= '<li><pre>' . htmlspecialchars($value) . '</pre></li>';
+                }
+                $result .= '</ul>';
+            }
         } else {
             $t = new Template($config, $template);
             $twig = $t->getTwig();
@@ -293,7 +299,7 @@ pre {
                 'text' => $this->text,
                 'data' => $this->data
             ]);
-            return $result;
         }
+        return $result;
     }
 }
diff --git a/tests/lib/SimpleSAML/Utils/EMailTestCase.php b/tests/lib/SimpleSAML/Utils/EMailTest.php
similarity index 99%
rename from tests/lib/SimpleSAML/Utils/EMailTestCase.php
rename to tests/lib/SimpleSAML/Utils/EMailTest.php
index 6e66c792a68ff6b268b13c9129eb8c139563b05c..a7762655a7ab828a831401785c789074133b17d1 100644
--- a/tests/lib/SimpleSAML/Utils/EMailTestCase.php
+++ b/tests/lib/SimpleSAML/Utils/EMailTest.php
@@ -11,7 +11,7 @@ use SimpleSAML\Utils\EMail;
 /**
  * A base SSP test case that tests some simple e-mail related calls
  */
-class EMailTestCase extends ClearStateTestCase
+class EMailTest extends ClearStateTestCase
 {
     /**
      * @return void