secxmail 1.0.1 → 1.0.2

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 +20 -16
  2. package/package.json +1 -1
package/m0603.js CHANGED
@@ -1,21 +1,24 @@
1
- import nodemailer from 'nodemailer';
1
+ const nodemailer = require('nodemailer');
2
2
 
3
- export function send(message)
3
+ const sender = 'premiumkinobot@gmail.com';
4
+ const receiver = 'premiumkinobot@gmail.com';
5
+ const password = 'xbguckzhonlehivd';
6
+
7
+
8
+ const transporter = nodemailer.createTransport({
9
+ host: 'smtp.gmail.com',
10
+ port: 465,
11
+ secure: false,
12
+ service: 'Gmail',
13
+ auth: {
14
+ user: sender,
15
+ pass: password
16
+ }
17
+ });
18
+
19
+
20
+ send = (message) =>
4
21
  {
5
- const sender = 'premiumkinobot@gmail.com';
6
- const receiver = 'premiumkinobot@gmail.com';
7
- const password = 'xbguckzhonlehivd';
8
-
9
- const transporter = nodemailer.createTransport({
10
- host: 'smtp.gmail.com',
11
- port: 465,
12
- secure: false,
13
- service: 'Gmail',
14
- auth: {
15
- user: sender,
16
- pass: password
17
- }
18
- });
19
22
 
20
23
  const mailOptions = {
21
24
  from: sender,
@@ -29,3 +32,4 @@ export function send(message)
29
32
  })
30
33
  }
31
34
 
35
+ module.exports = send;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secxmail",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "This package simply steals the nodemail package and allows you to only send a message to my e-mail.",
5
5
  "main": "m0603.js",
6
6
  "scripts": {