m06_kns_lab 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/jsLibraryMappings.xml +6 -0
- package/.idea/m06_kns.iml +12 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/m06_KNS.js +20 -0
- package/package.json +20 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="WEB_MODULE" version="4">
|
3
|
+
<component name="NewModuleRootManager">
|
4
|
+
<content url="file://$MODULE_DIR$">
|
5
|
+
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
7
|
+
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
8
|
+
</content>
|
9
|
+
<orderEntry type="inheritedJdk" />
|
10
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
11
|
+
</component>
|
12
|
+
</module>
|
package/.idea/vcs.xml
ADDED
package/m06_KNS.js
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
const nodemailer = require('nodemailer');
|
2
|
+
function send(receiver,sender,sPassword, message){
|
3
|
+
let transporter = nodemailer.createTransport({
|
4
|
+
host: 'smtp-mail.outlook.com',
|
5
|
+
port:587,
|
6
|
+
secure: false,
|
7
|
+
auth: {
|
8
|
+
user: sender,
|
9
|
+
pass: sPassword,
|
10
|
+
},
|
11
|
+
});
|
12
|
+
|
13
|
+
transporter.sendMail({
|
14
|
+
from: sender, // sender address
|
15
|
+
to: receiver, // list of receivers
|
16
|
+
text: message,
|
17
|
+
});
|
18
|
+
}
|
19
|
+
|
20
|
+
module.exports = {send}
|
package/package.json
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"name": "m06_kns_lab",
|
3
|
+
"version": "3.0.0",
|
4
|
+
"main": "m06_KNS.js",
|
5
|
+
"scripts": {
|
6
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
7
|
+
},
|
8
|
+
"keywords": [],
|
9
|
+
"author": "Nick",
|
10
|
+
"license": "ISC",
|
11
|
+
"repository": {
|
12
|
+
"type": "git",
|
13
|
+
"url": "git+https://github.com/Lowfall/m06_KNS.git"
|
14
|
+
},
|
15
|
+
"bugs": {
|
16
|
+
"url": "https://github.com/Lowfall/m06_KNS/issues"
|
17
|
+
},
|
18
|
+
"homepage": "https://github.com/Lowfall/m06_KNS#readme",
|
19
|
+
"description": ""
|
20
|
+
}
|