Skip to content
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.

whiteout-io/browsersmtp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

browsersmtp

Incredibly hacky SMTP integration test server in the browser.

See demo here.

Hook BrowserSMTP server with SmtpClient

Create server instance

server = new BrowserSMTP({});

Create client instance

client = new SmtpClient(false, false, {
    auth: {
        user: "testuser",
        pass: "demo"
    },
    useSSL: false
});

Replace TCPSocket constructor with a mock object from the server

client._TCPSocket = server.createTCPSocket();

Connect to the server and start hacking

client.connect();

Thats it!

Releases

No releases published

Packages

No packages published