Files
biomedjs/node_modules/emailjs/package.json

57 lines
7.7 KiB
JSON
Raw Permalink Normal View History

2014-09-14 07:04:16 -04:00
{
"name": "emailjs",
"description": "send text/html emails and attachments (files, streams and strings) from node.js to any smtp server",
2014-09-14 07:05:34 -04:00
"version": "0.3.11",
2014-09-14 07:04:16 -04:00
"author": {
"name": "eleith"
},
"contributors": [
{
"name": "izuzak"
},
{
"name": "Hiverness"
},
{
"name": "mscdex"
},
{
"name": "jimmybergman"
}
],
"repository": {
"type": "git",
"url": "http://github.com/eleith/emailjs.git"
},
"dependencies": {
"moment": "= 1.7.0",
"mimelib": "0.2.14",
"bufferjs": "=1.1.0"
},
"optionalDependencies": {
"bufferjs": "=1.1.0"
},
"devDependencies": {
"mocha": "= 1.7.4",
"chai": "= 1.1.0",
"simplesmtp": "0.3.32",
"mailparser": "0.4.1",
"iconv": "2.0.7"
},
"engine": [
"node >= 0.10"
],
"main": "email",
"scripts": {
"test": "mocha -R spec -t 5000"
},
"readme": "# emailjs [![Build Status](https://secure.travis-ci.org/eleith/emailjs.png)](http://travis-ci.org/eleith/emailjs)\n\nsend emails, html and attachments (files, streams and strings) from node.js to any smtp server\n\n## INSTALLING\n\n\tnpm install emailjs\n\n## FEATURES\n - works with SSL and TLS smtp servers \n - supports smtp authentication (PLAIN, LOGIN, CRAMMD5)\n - emails are queued and the queue is sent asynchronously\n - supports sending html emails and emails with multiple attachments (MIME)\n - attachments can be added as strings, streams or file paths\n - supports utf-8 headers and body\n\n## REQUIRES\n - auth access to an SMTP Server\n - if your service (ex: gmail) uses two-step authentication, use an applicaiton specific password\n\n## EXAMPLE USAGE - text only emails\n\n```javascript\nvar email \t= require(\"./path/to/emailjs/email\");\nvar server \t= email.server.connect({\n user: \"username\", \n password:\"password\", \n host: \"smtp.your-email.com\", \n ssl: true\n});\n\n// send the message and get a callback with an error or details of the message that was sent\nserver.send({\n text: \"i hope this works\", \n from: \"you <username@your-email.com>\", \n to: \"someone <someone@your-email.com>, another <another@your-email.com>\",\n cc: \"else <else@your-email.com>\",\n subject: \"testing emailjs\"\n}, function(err, message) { console.log(err || message); });\n```\n\n## EXAMPLE USAGE - html emails and attachments\n\n```javascript\nvar email \t= require(\"./path/to/emailjs/email\");\nvar server \t= email.server.connect({\n user:\t\"username\", \n password:\"password\", \n host:\t\"smtp.your-email.com\", \n ssl:\t\ttrue\n});\n\nvar message\t= {\n text:\t\"i hope this works\", \n from:\t\"you <username@your-email.com>\", \n to:\t\t\"someone <someone@your-email.com>, another <another@your-email.com>\",\n cc:\t\t\"else <else@your-email.com>\",\n subject:\t\"testing emailjs\",\n attachment: \n [\n {data:\"<html>i <i>hope</i> this works!</html>\", alternative:true},\n {path:\"path/to/file.zip\", type:\"application/zip\", name:\"renamed.zip\"}\n ]\n};\n\n// send the message and get a callback with an error or details of the message that was sent\nserver.send(message, function(err, message) { console.log(err || message); });\n\n// you can continue to send more messages with successive calls to 'server.send', \n// they will be queued on the same smtp connection\n\n// or you can create a new server connection with 'email.server.connect' \n// to asynchronously send individual emails instead of a queue\n```\n\n## EXAMPLE USAGE - sending through hotmail/outlook\n\n```javascript\nvar email \t= require(\"./path/to/emailjs/email\");\nvar server \t= email.server.connect({\n user:\t\"username\", \n password:\"password\", \n host:\t\"smtp-mail.outlook.com\", \n tls: {ciphers: \"SSLv3\"}\n});\n\nvar message\t= {\n text:\t\"i hope this works\", \n from:\t\"you <username@outlook.com>\", \n to:\t\t\"someone <someone@your-email.com>, another <another@your-email.com>\",\n cc:\t\t\"else <else@your-email.com>\",\n subject:\t\"testing emailjs\",\n attachment: \n [\n {data:\"<html>i <i>hope</i> this works!</html>\", alternative:true},\n {path:\"path/to/file.zip\", type:\"application/zip\", name:\"renamed.zip\"}\n ]\n};\n\n// send the message and get a callback with an error or details of the message that was sent\nserver.send(message, function(err, message) { console.log(err || message); });\n```\n\n# API \n\n## email.server.connect(options)\n\n\t// options is an object with the following keys\n\toptions =\n\t{\n\t\tuser \t\t// username for logging into smtp \n\t\tpassword // password for logging into smtp\n\t\thost\t\t// smtp host\n\t\tport\t\t// smtp port (if null a standard port number will be used)\n\t\tssl\t\t// boolean or object {key, ca, cert} (if true or object, ssl connection will be made)\n\t\ttls\t\t// boolean or object (if true or object, starttls will be initiated)\n\t\ttimeout\t// max number of millis
"readmeFilename": "Readme.md",
2014-09-14 07:05:34 -04:00
"_id": "emailjs@0.3.11",
2014-09-14 07:04:16 -04:00
"dist": {
2014-09-14 07:05:34 -04:00
"shasum": "a6da50c449d0192a7778cde2fde4bfe3489acce4"
2014-09-14 07:04:16 -04:00
},
2014-09-14 07:05:34 -04:00
"_from": "emailjs@0.3.11",
"_resolved": "https://registry.npmjs.org/emailjs/-/emailjs-0.3.11.tgz"
2014-09-14 07:04:16 -04:00
}