Skip to content

Commit

Permalink
Merge pull request #6 from SynergiTech/williamrenfrew-patch-envvar
Browse files Browse the repository at this point in the history
Standardise getenv call for EMAIL
  • Loading branch information
williamrenfrew authored Nov 6, 2019
2 parents 58b6511 + 151708f commit eac4304
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 eac4304

Please sign in to comment.