How it works
December 19, 1998
Mail Server Pages
eXtensible Mail Transaction Protocol (XMTP)
The process begins on the ship, where a digital camera is plugged into a PC and a digital image is taken of the patient's injury.
The digital image is then optimized as a JPEG file, and sent along with an HTML-based form as an ordinary e-mail attachment (multipart/related MIME message).
Representing the multipart MIME message in XMTP has many advantages. By default, encoding patient information in XML ensures that the consults can be indexed in the database, analyzed and routed to the correct specialist according to Consult98's pattern matching rules engine. In this way, binary images can be integrated with textual data.
Borden has created an online demonstration of XMTP so that developers can test it in an interactive fashion. The XMTP demo is available by sending e-mail to email@example.com.
When someone sends an e-mail message to the address, this script is invoked.
The script will return an XMTP encoding of the MIME e-mail message when it sends you a reply. Be sure to attach a binary image file so you can see the image base64 encoded and expressed in the XMTP document that is e-mailed back to you.