瀏覽代碼

Wrapped send call around PRODUCTION conditional.

Alan Lam 8 年之前
父節點
當前提交
0835781784
共有 1 個文件被更改,包括 7 次插入 和 1 次删除
  1. 7 1
      engine/email.php

+ 7 - 1
engine/email.php

@@ -109,7 +109,13 @@ class Email {
 
 		$instance->Body = $this->htmlContent;
 
-		return $this->instance->send();
+		if(PRODUCTION) {
+			return $this->instance->send();
+		}
+		else {
+			return true;
+		}
+
 
 	}