Permalink
Browse files

updated demo and docs, bumped to version 0.3.0

  • Loading branch information...
1 parent 2f419bf commit ca611674cf86d7c795d97d135716065556210b90 @Marak committed Nov 1, 2010
Showing with 43 additions and 33 deletions.
  1. +32 −13 Readme.md
  2. +2 −18 demo.js
  3. +1 −2 lib/node_mailer.js
  4. +8 −0 stubSMTP
@@ -1,4 +1,4 @@
-#v0.2.0
+#v0.3.0
<img src = "http://imgur.com/5Ol90.png"/><br/>
###send emails from node.js to your smtp server, simple as cake.
@@ -10,18 +10,37 @@
npm install mailer
+# FEATURES
+ - super simple api
+ - emails are blasted out asynchronously
+ - uses connection pooling per SMTP server
+
+# REQUIRES
+ - SMTP Server
+
+
# USAGE
var email = require("mailer");
- email.send({
- host : "localhost", // smtp server hostname
- port : "25", // smtp server port
- domain : "localhost", // domain used by client to identify itself to server
- authentication : "login", // auth login is supported; anything else is no auth
- username : "dXNlcm5hbWU=", // Base64 encoded username
- password : "cGFzc3dvcmQ=", // Base64 encoded password
- to : "marak.squires@gmail.com",
- from : "obama@whitehouse.gov",
- subject : "node_mailer test email",
- body : "hello this is a test email from the node_mailer"
- });
+ for(var i = 0; i < 10; i++){
+
+ email.send({
+ host : "localhost", // smtp server hostname
+ port : "25", // smtp server port
+ domain : "localhost", // domain used by client to identify itself to server
+ to : "marak.squires@gmail.com",
+ from : "obama@whitehouse.gov",
+ subject : "node_mailer test email",
+ body : "hello this the " + i + " a test email from the node_mailer",
+
+ authentication : "login", // auth login is supported; anything else is no auth
+ username : "dXNlcm5hbWU=", // Base64 encoded username
+ password : "cGFzc3dvcmQ=", // Base64 encoded password
+
+ });
+
+ }
+
+## Authors
+
+Marak Squires, Elijah Insua
View
20 demo.js
@@ -1,6 +1,6 @@
var email = require("./lib/node_mailer");
-for(var i = 0; i < 5; i++){
+for(var i = 0; i < 10; i++){
email.send({
host : "localhost", // smtp server hostname
@@ -9,23 +9,7 @@ for(var i = 0; i < 5; i++){
to : "marak.squires@gmail.com",
from : "obama@whitehouse.gov",
subject : "node_mailer test email",
- body : "hello this is a test email from the node_mailer",
-
- authentication : "login", // auth login is supported; anything else is no auth
- username : "dXNlcm5hbWU=", // Base64 encoded username
- password : "cGFzc3dvcmQ=", // Base64 encoded password
-
- });
-
-
- email.send({
- host : "localhost", // smtp server hostname
- port : "1026", // smtp server port
- domain : "localhost", // domain used by client to identify itself to server
- to : "marak.squires@gmail.com",
- from : "obama@whitehouse.gov",
- subject : "node_mailer test email 2",
- body : "hello this is a test email from the node_mailer",
+ body : "hello this the " + i + " a test email from the node_mailer",
authentication : "login", // auth login is supported; anything else is no auth
username : "dXNlcm5hbWU=", // Base64 encoded username
View
@@ -1,4 +1,4 @@
-/* Copyright (c) 2009 Marak Squires - http://github.com/marak/node_mailer
+/* Copyright (c) 2009-2010 Marak Squires, Elijah Insua - http://github.com/marak/node_mailer
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
@@ -190,7 +190,6 @@ Email.prototype = {
exports.send = function(options) {
var i, key;
-
options = options || {};
// fill in the gaps with defaultOptions
View
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+if [ -z $1 ]
+then port=1025
+else port=$1
+fi
+
+echo "Starting dumb mail server on localhost:$port"
+python -m smtpd -n -c DebuggingServer localhost:$port

0 comments on commit ca61167

Please sign in to comment.