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