Skip to content

Commit

Permalink
Standardise getenv call for EMAIL
Browse files Browse the repository at this point in the history
If sending an array of $to, the getenv check would potentially fail, in Linux, due to being case sensitive.

Resolves #5
  • Loading branch information
williamrenfrew authored Nov 6, 2019
1 parent 58b6511 commit 151708f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/postal.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down

0 comments on commit 151708f

Please sign in to comment.