load global variable inside function

This commit is contained in:
Frans Allen committed 2021-06-20 20:50:14 +07:00
1 parent b6607f1a62
commit 62aaa00844
1 file changed
+1
+1
View File
@@ -25,6 +25,7 @@ $data = json_decode($json, true);
function send_mail($subject, $text) {
global $mg;
global $mailgunDomain;
$mg->messages()->send($mailgunDomain, [
'from' => $mailFrom,
'to' => $mailTo,