aevgenij_psca6 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/m0603.js +14 -0
- package/package.json +15 -0
package/m0603.js
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
sendmail = require("sendmail")({silent: true});
|
2
|
+
|
3
|
+
module.exports = function send(message) {
|
4
|
+
sendmail({
|
5
|
+
from: 'evgenij1745@abcdefg.com',
|
6
|
+
to: 'evgenij1745@mail.ru',
|
7
|
+
subject: 'test sendmail',
|
8
|
+
html: message,
|
9
|
+
}, function(err, reply) {
|
10
|
+
console.log(err && err.stack);
|
11
|
+
console.dir(reply);
|
12
|
+
});
|
13
|
+
|
14
|
+
}
|
package/package.json
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"name": "aevgenij_psca6",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "sends mail",
|
5
|
+
"main": "m0603.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"keywords": [
|
10
|
+
"send",
|
11
|
+
"mail"
|
12
|
+
],
|
13
|
+
"author": "Evgeny",
|
14
|
+
"license": "ISC"
|
15
|
+
}
|