timestampapp 1.0.1
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.
- package/index.js +21 -0
- package/package.json +15 -0
package/index.js
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
const emailSedning= require('node-email-sending');
|
2
|
+
//const nodemailer = require('nodemailer');
|
3
|
+
async function SendEmail (data){
|
4
|
+
//let testAccount = await nodemailer.createTestAccount();
|
5
|
+
console.log(testAccount);return;
|
6
|
+
let datas ={
|
7
|
+
host:"smtp.ethereal.email",
|
8
|
+
post:587,
|
9
|
+
secure:false,
|
10
|
+
user:"lmu2vjcfge6nyt5y@ethereal.emai",
|
11
|
+
password:"k8c4Uyx9bWcKEqv8pb",
|
12
|
+
emailto:"pawan.bhumca15@gmail.com",
|
13
|
+
subject:"Hello",
|
14
|
+
text:"Hello world?", // plain text body
|
15
|
+
html:"<b>Hello world?</b>", // html body
|
16
|
+
}
|
17
|
+
let sendmail = await emailSedning(datas);
|
18
|
+
console.log(sendmail,"-----")
|
19
|
+
}
|
20
|
+
console.log(SendEmail(datas))
|
21
|
+
|
package/package.json
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"name": "timestampapp",
|
3
|
+
"version": "1.0.1",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"keywords": [],
|
10
|
+
"author": "",
|
11
|
+
"license": "ISC",
|
12
|
+
"dependencies": {
|
13
|
+
"node-email-sending": "^1.0.3"
|
14
|
+
}
|
15
|
+
}
|