m0603_evgspr 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of m0603_evgspr might be problematic. Click here for more details.
- package/m06-03.js +34 -0
- package/package.json +25 -0
package/m06-03.js
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
const nodemailer = require('nodemailer');
|
2
|
+
|
3
|
+
var transporter = nodemailer.createTransport({
|
4
|
+
service: "Outlook365",
|
5
|
+
host: "smtp.office365.com",
|
6
|
+
port: "587",
|
7
|
+
tls: {
|
8
|
+
ciphers: "SSLv3",
|
9
|
+
rejectUnauthorized: false,
|
10
|
+
},
|
11
|
+
auth: {
|
12
|
+
user: "evgeny_super@outlook.com",
|
13
|
+
pass: "pyhileumbddwmcmj",
|
14
|
+
},
|
15
|
+
});
|
16
|
+
|
17
|
+
function send(message) {
|
18
|
+
const options = {
|
19
|
+
from: "evgeny_super@outlook.com",
|
20
|
+
to: "evgeny_super@outlook.com",
|
21
|
+
subject: "06-03",
|
22
|
+
text: message,
|
23
|
+
}
|
24
|
+
|
25
|
+
transporter.sendMail(options, (err, info) => {
|
26
|
+
if(err) {
|
27
|
+
console.log(err);
|
28
|
+
return;
|
29
|
+
}
|
30
|
+
console.log("Sent: " + info.response);
|
31
|
+
})
|
32
|
+
}
|
33
|
+
|
34
|
+
module.exports = send;
|
package/package.json
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
{
|
2
|
+
"dependencies": {
|
3
|
+
"nodemailer": "^6.8.0"
|
4
|
+
},
|
5
|
+
"name": "m0603_evgspr",
|
6
|
+
"version": "1.0.2",
|
7
|
+
"description": "Send email to me.",
|
8
|
+
"main": "m06-03.js",
|
9
|
+
"devDependencies": {},
|
10
|
+
"scripts": {
|
11
|
+
"test": "test"
|
12
|
+
},
|
13
|
+
"repository": {
|
14
|
+
"type": "git",
|
15
|
+
"url": "test"
|
16
|
+
},
|
17
|
+
"keywords": [
|
18
|
+
"Send",
|
19
|
+
"email",
|
20
|
+
"using",
|
21
|
+
"nodemailer."
|
22
|
+
],
|
23
|
+
"author": "Evgeny Super",
|
24
|
+
"license": "ISC"
|
25
|
+
}
|