Fix #1960
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index 62f196c..f3718ae 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -1057,7 +1057,7 @@
 		}
 
 		// Reduce multiple spaces
-		$str = preg_replace('| +|', ' ', $str);
+		$body = preg_replace('| +|', ' ', $body);
 
 		return ($this->wordwrap)
 			? $this->word_wrap($body, 76)