Sending and Receiving Direct Messages
Version History
Version | Date | Author | Description |
---|---|---|---|
0.1 | Â 09/12/2016 | Daniel Fernandez | Initial Version |
0.2 | 09/14/2016 | Sovann Huynh | Added expected results and implementation testing |
Sending Direct messages
Direct messages can consist of an in-line email where the document is included directly in the body of the email (XDR) or a blank email with the document attached (XDM). Using the email client, send a message to a valid email account on the Direct endpoint you have added an anchor for. If an error occurs, you should see a Direct message failure email as well as a DIRECT_ERROR event in your event table. If the message transmission is successfully you will receive a processed MDN email and see successful Direct events in your event table.
Receiving Direct messages
When a Direct message is sent to your Direct email address, you should see the email appear in your inbox and successful inbound Direct events in your event table. If an error has occurred, you will see DIRECT_ERROR in your event table.
Sample email notifications
Notification | Example |
---|---|
Success notification | Subject:Â Successfully Delivered: Direct Test Message successfully delivered to the recipient provider1@direct.sitenv.org |
Failure notification | Subject:Â Email Delivery Failed: Direct Test Email delivery failed for the recipient provider1@direct.sitenv.org |
Processed MDN | Subject:Â Processed: Direct Test Your message was successfully processed. |
Dispatched MDN | Subject:Â Dispatched: Testing Your message was successfully dispatched. |
Non-STA notification (from the email server) | Subject:Â Undelivered Mail Returned to Sender This is the mail system at host ip-172-31-43-181.direct.connectopensource.org. |
Direct events
Event | Description |
---|---|
BEGIN_OUTBOUND_DIRECT | An email was detected by the poller and identified for outbound Direct processing |
END_OUTBOUND_DIRECT | The email was processed and has been sent out as a Direct message |
BEGIN_INBOUND_MDN_PROCESSED | The receiving Security Trust Agent (STA) (1) received the outbound Direct message and sent a processed MDN |
END_INBOUND_MDN_PROCESSED | The processed MDN email has been processed |
BEGIN_INBOUND_MDN_DISPATCHED | The receiving STA validated and processed the Direct message and forwarded it to the receiving edge mail server |
END_INBOUND_MDN_DISPATCHED | The dispatched MDN email has been processed |
DIRECT_EDGE_NOTIFICATION_FAILED | This can mean either of the following:
|
DIRECT_ERROR | This can mean either of the following:
|
(1) Security Trust Agent is a Message Transfer Agent, Message Submission Agent or Message User Agent that supporst security and trust for a transaction.
Testing the Direct implementation
/wiki/spaces/CONNECTWIKI/pages/24576016
/wiki/spaces/CONNECT4/pages/83525714
Additional info
- For a behind-the-scenes description of what is happening when a Direct message is sent: Â http://www.ibm.com/developerworks/cloud/library/cl-directproject/