Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
115 lines (80 sloc) 3.32 KB

Receive Mail Using a WebSocket

Receiving mail from a Websocket allows for interacting with incoming email in near real time.

Web sockets are a powerful tool allowing you to end-to-end test your application's email delivery systems, or respond to incoming mail in sophisticated ways - without having to setup a mail server or mess around with SMTP code.

Prerequsites

Setup

Launch WebSocket Example

Now, when an email messages are delivered to user1@mailsac.com, they will also be sent to your web socket. Try sending a message - it will be parsed into JSON and dumped to your console.