load global variables inside function

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