forked from Marak/node_mailer
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api] started to create connection pool. added stub python smtp server
- Loading branch information
Showing
3 changed files
with
86 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
var email = require("mailer"); | ||
var email = require("./lib/node_mailer"); | ||
|
||
for(var i = 0; i < 5; i++){ | ||
|
||
|
||
|
||
} | ||
|
||
email.send({ | ||
host : "localhost", // smtp server hostname | ||
port : "25", // smtp server port | ||
port : "1025", // 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" | ||
}); | ||
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 | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |