mailcub 2.0.5 → 2.0.7

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/README.md +6 -3
  2. package/package.json +8 -1
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Mailcub Package Documentation
2
- Version: 2.0.4
2
+ Version: 2.0.7
3
3
 
4
4
  ## Introduction
5
5
  Mailcub is an npm package that enables you to send emails using a simple and straightforward interface. It provides a function to send emails with the following features:
@@ -38,7 +38,7 @@ const emailBody = {
38
38
  receiver: 'user@example.com',
39
39
  subject: 'Subject',
40
40
  html: '<h1>Hello</h1>',
41
- attachment: 'attachment_path'
41
+ attachment: 'attachment_file'
42
42
  };
43
43
 
44
44
  const secretKey = 'your-secret-key';
@@ -58,7 +58,7 @@ mailcub.sendMail(emailBody, secretKey)
58
58
  - receiver (String): The recipient's email address.
59
59
  - subject (String): The email subject.
60
60
  - html (String): The HTML content of the email.
61
- - attachment (String or Array): The file path of a single attachment, or an array of file paths for multiple attachments — e.g., ['path/to/file1', 'path/to/file2', 'path/to/file3'].
61
+ - attachment (File or Array of files): The single attachment file, or an array of files for multiple attachments — e.g., ['file1', 'file2', 'file3'].
62
62
 
63
63
  - secretKey (String): The secret key for authentication. You can obtain this key from console.mailcub.com.
64
64
 
@@ -68,4 +68,7 @@ If you encounter any issues or have questions, please contact our support team a
68
68
  ## License
69
69
  This package is distributed under the MIT License. See the LICENSE file for details.
70
70
 
71
+ ## Keywords
72
+ mailcub, mailcub api, email, mail, newsletter
73
+
71
74
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mailcub",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "This package enables users to send emails using their registered domains, providing a professional and branded approach to communication.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -16,6 +16,13 @@
16
16
  },
17
17
  "author": "Devflips",
18
18
  "license": "ISC",
19
+ "keywords": [
20
+ "mailcub",
21
+ "mailcub api",
22
+ "email",
23
+ "mail",
24
+ "newsletter"
25
+ ],
19
26
  "bugs": {
20
27
  "url": "https://github.com/devflips/mailcub/issues"
21
28
  },