mirror of
https://github.com/tiennm99/thedev.id.git
synced 2026-10-15 02:17:32 +00:00
set mailgun domain from github secrets
This commit is contained in:
1 parent
8b5486bde4
commit
80a1825918
1 file changed
+2
-1
@@ -8,6 +8,7 @@ use Mailgun\Mailgun;
|
||||
$email = getenv('CF_EMAIL');
|
||||
$apiKey = getenv('CF_API_KEY');
|
||||
$zoneID = getenv('CF_ZONE_ID');
|
||||
$mailgunDomain = getenv('MG_DOMAIN');
|
||||
$mailgunKey = getenv('MG_KEY');
|
||||
$mailFrom = getenv('MAIL_FROM');
|
||||
$mailTo = getenv('MAIL_TO');
|
||||
@@ -24,7 +25,7 @@ $data = json_decode($json, true);
|
||||
|
||||
function send_mail($subject, $text) {
|
||||
global $mg;
|
||||
$mg->messages()->send('upset.dev', [
|
||||
$mg->messages()->send($mailgunDomain, [
|
||||
'from' => $mailFrom,
|
||||
'to' => $mailTo,
|
||||
'subject' => $subject,
|
||||
|
||||
Reference in new issue
Block a user