Created
September 3, 2019 15:04
-
-
Save zhuharev/6a5d24b9e1eb8373c5a501f8e248ad24 to your computer and use it in GitHub Desktop.
send mail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$_POST["token"] = "token"; | |
// use key 'http' even if you send the request to https://... | |
$options = array( | |
'http' => array( | |
'header' => "Content-type: application/x-www-form-urlencoded\r\n", | |
'method' => 'POST', | |
'content' => http_build_query($_POST) | |
) | |
); | |
$context = stream_context_create($options); | |
$result = file_get_contents($url, false, $context); | |
header("Location: http://orehon.by/"); | |
die(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment