From 151708f299fc179e0d2fa58f2d12a0d3319f6d95 Mon Sep 17 00:00:00 2001 From: William Renfrew Date: Wed, 6 Nov 2019 11:15:14 +0000 Subject: [PATCH] Standardise getenv call for EMAIL If sending an array of $to, the getenv check would potentially fail, in Linux, due to being case sensitive. Resolves #5 --- classes/postal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/postal.php b/classes/postal.php index 8f4d204..8a41ed5 100644 --- a/classes/postal.php +++ b/classes/postal.php @@ -57,7 +57,7 @@ public static function send($subject, $body, $to, $to_name = '', $from = null, $ if (\Fuel::$env != \Fuel::DEVELOPMENT) { $message->to($ar_to_name.' <'.$ar_to_email.'>'); } else { - $env = getenv('email'); + $env = getenv('EMAIL'); if (!$env) { $env = 'root@localhost'; }