Using the Secure Message Delivery API