X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=demo%2Fclient%2Fmail.php;h=9486e095440cf8e3a7ea72590fbd4df60f60cb4e;hb=92e61c97411b8652b235e9c05d64934d83c53671;hp=e1966b38dd3eb708acea676bfc8b9f8f70791966;hpb=a518f173b88b757ad83e694d088331fe5496d977;p=plcapi.git diff --git a/demo/client/mail.php b/demo/client/mail.php index e1966b3..9486e09 100644 --- a/demo/client/mail.php +++ b/demo/client/mail.php @@ -10,9 +10,7 @@ if (isset($_GET['showSource']) && $_GET['showSource']) {

Mail demo

-

This form enables you to send mail via an XML-RPC server. For public use - only the "Userland" server will work (see Dave Winer's - message). +

This form enables you to send mail via an XML-RPC server. When you press Send this page will reload, showing you the XML-RPC request sent to the host server, the XML-RPC response received and the internal evaluation done by the PHP implementation.

@@ -25,12 +23,8 @@ if (isset($_GET['showSource']) && $_GET['showSource']) { include_once __DIR__ . "/../../src/Autoloader.php"; PhpXmlRpc\Autoloader::register(); -if (isset($_POST["server"]) && $_POST["server"]) { - if ($_POST["server"] == "Userland") { - $server = "http://206.204.24.2/RPC2"; - } else { - $server = "http://pingu.heddley.com/xmlrpc/server.php"; - } +if (isset($_POST["mailto"]) && $_POST["mailto"]) { + $server = "http://phpxmlrpc.sourceforge.net/server.php"; $req = new PhpXmlRpc\Request('mail.send', array( new PhpXmlRpc\Value($_POST["mailto"]), new PhpXmlRpc\Value($_POST["mailsub"]), @@ -57,11 +51,6 @@ if (isset($_POST["server"]) && $_POST["server"]) { } ?>
- Server -
From

To