m06_kns_lab 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="JavaScriptLibraryMappings">
4
+ <includedPredefinedLibrary name="Node.js Core" />
5
+ </component>
6
+ </project>
@@ -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>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/m06_kns.iml" filepath="$PROJECT_DIR$/.idea/m06_kns.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
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
+ }