X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=blobdiff_plain;f=php%2Fphpxmlrpc%2Fdemo%2Fclient%2Fmail.php;fp=php%2Fphpxmlrpc%2Fdemo%2Fclient%2Fmail.php;h=9486e095440cf8e3a7ea72590fbd4df60f60cb4e;hp=0000000000000000000000000000000000000000;hb=21d187714285d9818fd94509b015ba069facb7ef;hpb=9bd41316bc9541bbedfe45377089d4e4927129b1 diff --git a/php/phpxmlrpc/demo/client/mail.php b/php/phpxmlrpc/demo/client/mail.php new file mode 100644 index 0000000..9486e09 --- /dev/null +++ b/php/phpxmlrpc/demo/client/mail.php @@ -0,0 +1,66 @@ + + +xmlrpc - Mail demo + +

Mail demo

+ +

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.

+ +

You can find the source to this page here: mail.php
+ And the source to a functionally identical mail-by-XML-RPC server in the file server.php included with the library (look for the 'mail_send' + method)

+setDebug(2); + $resp = $client->send($req); + if (!$resp->faultCode()) { + print "Mail sent OK
\n"; + } else { + print ""; + print "Mail send failed
\n"; + print "Fault: "; + print "Code: " . htmlspecialchars($resp->faultCode()) . + " Reason: '" . htmlspecialchars($resp->faultString()) . "'
"; + print "
"; + } +} +?> +
+ From
+
+ To
+ Cc
+ Bcc
+
+ Subject +
+ Body
+ +
+ +