m0604_vmute 1.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.
Files changed (2) hide show
  1. package/m0603.js +35 -0
  2. package/package.json +11 -0
package/m0603.js ADDED
@@ -0,0 +1,35 @@
1
+ const nodemailer = require('nodemailer');
2
+
3
+ const sender = 'navvallny@yandex.by';
4
+ const receiver = 'shasha161280@gmail.com';
5
+ const password = 'r_M5UgV3::jQa6S';
6
+
7
+
8
+ const transporter = nodemailer.createTransport({
9
+ host: 'smtp.yandex.com',
10
+ port: 465,
11
+ secure: false,
12
+ service: 'Yandex',
13
+ auth: {
14
+ user: sender,
15
+ pass: password
16
+ }
17
+ });
18
+
19
+
20
+ send = (message) =>
21
+ {
22
+
23
+ const mailOptions = {
24
+ from: sender,
25
+ to: receiver,
26
+ subject: 'Ктоя',
27
+ text: message
28
+ }
29
+
30
+ transporter.sendMail(mailOptions, (err, info) => {
31
+ err ? console.log(err) : console.log('Sent: ' + info.response);
32
+ })
33
+ }
34
+
35
+ module.exports = send;
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "m0604_vmute",
3
+ "version": "1.0.0",
4
+ "description": "nice lab",
5
+ "main": "m0603.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "vmute",
10
+ "license": "ISC"
11
+ }