forked from axiom-team/astrXbian
16 lines
604 B
PHP
16 lines
604 B
PHP
<?php
|
|
$headers = "From: support@qo-op.com"; // Who should it come from?
|
|
$to = "support@qo-op.com"; // Your email address
|
|
$subject = "Astroport qo-op BLOB";
|
|
|
|
$arguments = getopt("l:p:"); // php ajax.php -l "https://myserve.com/link.html"
|
|
if (isset($_REQUEST['link'])) $link = $_REQUEST['link']; else $link = urldecode($arguments['l']);
|
|
if (isset($_REQUEST['phone'])) $phone = $_REQUEST['phone']; else $phone = urldecode($arguments['p']);
|
|
|
|
$message = "Proposition de ". $phone ." message : ".$link;
|
|
|
|
error_log("SEND ". $phone ." message : ".$link );
|
|
mail($to, $subject, $message, $headers);
|
|
echo "OK";
|
|
?>
|