From f81e9dee4cb0f2e66cedf90c0d82c5e6af7f3a48 Mon Sep 17 00:00:00 2001 From: skyskyodd <73158480+skyskyodd@users.noreply.github.com> Date: Tue, 20 Oct 2020 14:06:52 +0700 Subject: [PATCH] Update run.php --- run.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/run.php b/run.php index 02d1505..e2b298f 100644 --- a/run.php +++ b/run.php @@ -9,6 +9,29 @@ $mail = strtolower(str_replace(" ", "", $name).mt_rand(10, 9999)); $email = $mail."@".$domain; +function new_email($username) { + + $method = 'POST'; + $header = [ + 'Content-Type: application/json;charset=utf-8' + ]; + $endpoint = 'https://api.internal.temp-mail.io/api/v2/email/new'; + + // $param = '{"name":"'.$username.'"}'; //Custome email + + $domain= ['inscriptio.in', 'montokop.pw', 'smart-email.me']; + $param = '{"name":"'.$username.'","domain":"'.$domain[rand(0,2)].'"}'; //full email + + $email = $this->request ($method, $endpoint, $param, $header); + + $json = json_decode($email); + + if(empty($json->email)) { + return FALSE; + } else { + return $json->email; + } + } $regis = regis($email, $uuid); echo "$regis\n$email\n";