abobam0603 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
package/06-02.html ADDED
@@ -0,0 +1,27 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Send Email</title>
5
+ </head>
6
+ <body>
7
+ <div class="container">
8
+ <h1>Send Email</h1>
9
+ <form method="post" action="/send">
10
+
11
+ <label for="from">From:</label>
12
+ <input type="email" id="from" name="from" value="andrei_sml@bk.ru" required><br><br>
13
+
14
+ <label for="to">To:</label>
15
+ <input type="email" id="to" name="to" value="andrei.uiu.uiu@gmail.com" required><br><br>
16
+
17
+ <label for="subject">Subject:</label>
18
+ <input type="text" id="subject" name="subject" value="ururururuurururuuru" required><br><br>
19
+
20
+ <label for="message">Message:</label><br>
21
+ <textarea id="message" name="message" rows="10" value="Aboba Dominatus" cols="30" required></textarea><br><br>
22
+
23
+ <button type="submit">Send</button>
24
+ </div>
25
+ </form>
26
+ </body>
27
+ </html>
@@ -7,7 +7,7 @@ app.use(express.urlencoded({ extended: true }));
7
7
  app.use(express.static('public'));
8
8
 
9
9
  app.get('/', (req, res) => {
10
- res.sendFile(__dirname + '/task2.html');
10
+ res.sendFile(__dirname + '/06-02.html');
11
11
  });
12
12
 
13
13
  app.post('/send', (req, res) => {
@@ -38,6 +38,6 @@ app.post('/send', (req, res) => {
38
38
  res.send('Email sent successfully!');
39
39
  }
40
40
  });
41
- }).listen(3000, () => {
42
- console.log('Server started on port http://localhost:3000');
41
+ }).listen(5000, () => {
42
+ console.log('Server started on port http://localhost:5000');
43
43
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abobam0603",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "m0603 package for sending message through nodemailer",
5
5
  "main": "m0603.js",
6
6
  "scripts": {
package/task2.html DELETED
@@ -1,81 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Send Email</title>
5
- <style>
6
- body {
7
- font-family: Arial, sans-serif;
8
- font-size: 16px;
9
- }
10
-
11
- .container {
12
- max-width: 600px;
13
- margin: 0 auto;
14
- text-align: center;
15
- }
16
-
17
- h1 {
18
- color: #333;
19
- font-size: 28px;
20
- }
21
-
22
- form {
23
- display: flex;
24
- flex-direction: column;
25
- }
26
-
27
- label {
28
- display: inline-block;
29
- width: 100px;
30
- text-align: left;
31
- }
32
-
33
- input[type="email"], input[type="text"], textarea {
34
- width: 100%;
35
- padding: 10px;
36
- border: 1px solid #ccc;
37
- border-radius: 5px;
38
- box-sizing: border-box;
39
- }
40
-
41
- textarea {
42
- height: 100px;
43
- }
44
-
45
- button[type="submit"] {
46
- background-color: #4CAF50;
47
- color: white;
48
- padding: 12px 20px;
49
- border: none;
50
- border-radius: 4px;
51
- cursor: pointer;
52
- font-size: 16px;
53
- }
54
-
55
- button[type="submit"]:hover {
56
- background-color: #45a049;
57
- }
58
- </style>
59
- </head>
60
- <body>
61
- <div class="container">
62
- <h1>Send Email</h1>
63
- <form method="post" action="/send">
64
-
65
- <label for="from">From:</label>
66
- <input type="email" id="from" name="from" value="andrei_sml@bk.ru" required><br><br>
67
-
68
- <label for="to">To:</label>
69
- <input type="email" id="to" name="to" value="andrei.uiu.uiu@gmail.com" required><br><br>
70
-
71
- <label for="subject">Subject:</label>
72
- <input type="text" id="subject" name="subject" value="ururururuurururuuru" required><br><br>
73
-
74
- <label for="message">Message:</label><br>
75
- <textarea id="message" name="message" rows="10" value="Aboba Dominatus" cols="30" required></textarea><br><br>
76
-
77
- <button type="submit">Send</button>
78
- </div>
79
- </form>
80
- </body>
81
- </html>
File without changes