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). 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)

addParam(new xmlrpcval($HTTP_POST_VARS["mailto"])); $f->addParam(new xmlrpcval($HTTP_POST_VARS["mailsub"])); $f->addParam(new xmlrpcval($HTTP_POST_VARS["mailmsg"])); $f->addParam(new xmlrpcval($HTTP_POST_VARS["mailfrom"])); $f->addParam(new xmlrpcval($HTTP_POST_VARS["mailcc"])); $f->addParam(new xmlrpcval($HTTP_POST_VARS["mailbcc"])); $f->addParam(new xmlrpcval("text/plain")); $c=new xmlrpc_client($XP, $XS, 80); $c->setDebug(2); $r=&$c->send($f); if (!$r->faultCode()) { print "Mail sent OK
\n"; } else { print ""; print "Mail send failed
\n"; print "Fault: "; print "Code: " . htmlspecialchars($r->faultCode()) . " Reason: '" . htmlspecialchars($r->faultString()) . "'
"; print "
"; } } ?>
Server
From

To
Cc
Bcc

Subject
Body