Skip to content
Browse files

Fixes #4

  • Loading branch information...
1 parent 0ab4380 commit 2818877e14cfe4fabf86ee953f54af9e67aae7f9 @ditesh committed Feb 13, 2013
Showing with 8 additions and 2 deletions.
  1. +8 −2 README.md
View
10 README.md
@@ -33,10 +33,16 @@ Here we initialize the client (for plain text transmission):
````javascript
var POP3Client = require("node-poplib");
-var client = new POP3Client(port, host, tls);
+var client = new POP3Client(port, host, {
+
+ tlserrs: false,
+ enabletls: true,
+ debug: false
+
+ });
````
-If the tls parameter is true, the library will use a TLS connection. Note that you will have to set the correct port (generally 995).
+The third parameter, `options`, takes three options. If `enabletls` is true, the library will use a TLS connection. Note that you will have to set the correct port (generally 995). If `tlserrs` is true, then TLS errors will be ignored. Finally, the `debug` parameter prints out requests and responses.
Next, we trap several common states:

0 comments on commit 2818877

Please sign in to comment.
Something went wrong with that request. Please try again.