-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpackage.json
More file actions
executable file
·48 lines (48 loc) · 2.83 KB
/
package.json
File metadata and controls
executable file
·48 lines (48 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"name": "mailx",
"version": "0.0.11",
"description": "simple and complete email client library (pop, imap and smtp) for nodejs",
"main": "main.js",
"scripts": {
"test": "node test/integration/runner.js"
},
"repository": {
"type": "git",
"url": "git://github.com/Atlantis-Software/mailx.git"
},
"keywords": [
"mail",
"email",
"pop",
"pop3",
"imap",
"smtp"
],
"author": {
"name": "Atlantis Software"
},
"license": "MIT",
"dependencies": {
"asynk": "~0.0.9",
"underscore": ">=1.8.3",
"imap": "~0.8.16",
"mailparser": "~0.6.0",
"nodemailer": "~2.6.4",
"optimist": "*"
},
"devDependencies": {
"mocha": ">=2.2.5",
"smtp-server": ">=1.14.2",
"hoodiecrow-imap": ">=2.1.0",
"pop-server": "~0.0.1",
"mailcomposer": "~3.12.0"
},
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/Atlantis-Software/mailx/issues"
},
"homepage": "https://github.com/Atlantis-Software/mailx",
"readme": "Mailx\n-------\n\nmailx is a simple and complete email client library (pop, imap and smtp) for nodejs. \n\n----------\n\n<i class=\"icon-pencil\"></i> Write and send an Email\n---------------------------------------------------\n\n#### <i class=\"icon-file\"></i> Message objet\nthe message object is used to write or read a message.\n\n**Sample:** write a new message\n```javascript\nvar message = mailx.message();\nmessage.setFrom('me', 'me@my-domain.com');\nmessage.addTo('you', 'you@your-domain.com');\nmessage.setSubject('hello');\nmessage.setText('hi ! how are u?');\n```\n#### <i class=\"icon-upload\"></i> Transport object\nthe transport objet is used to send a predefined message.\n\n**Sample:** sending a message\n```javascript\nvar transport = mailx.transport('smtp.host.com', 25, 'login', 'password');\ntransport.send(message, function(err,result) {\n console.log(result);\n});\n```\n\n<i class=\"icon-download\"></i> Receive Email\n-------------------------------------------\n\n<i class=\"icon-download\"></i> Store object\n\n**Sample:** get all message from server, log their subjets and delete the last one\n```javascript\nvar store = mailx.store('pop3', 'pop.host.com', 110, 'login', 'password');\nstore.connect(function(err) {\n if (err) {\n return console.log('connect error', err);\n }\n store.getInboxMessages(0, function(err, messages) {\n if (err) {\n return console.log('inbox error', err);\n }\n messages.forEach(function(message,index) {\n console.log(message.subject);\n if (index === messages.length - 1) {\n message.delete(function(err, data) {\n console.log('message deleted!', data);\n store.close(function(err, data) {\n console.log('store.close err:', err);\n });\n });\n }\n });\n });\n});\n```\n",
"_id": "mailx@0.0.9",
"_from": "mailx@"
}