@flutry/mail 0.0.1 → 0.0.3

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 +14 -12
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -1,28 +1,30 @@
1
- # @flutry/main
1
+ # @flutry/mail
2
2
 
3
- ![npm version](https://img.shields.io/npm/v/@flutry/main)
3
+ ![npm version](https://img.shields.io/npm/v/@flutry/mail)
4
4
 
5
- The heart and soul of the Flutry framework.
6
-
7
- This package provides the main infrastructure for server initialization and integration with other Flutry modules (e.g., @flutry/fastify, etc.).
5
+ This package provides a simple email sending system for the Flutry project, using nodemailer with SMTP configuration.
8
6
 
9
7
  ## 🔧 Features
10
8
 
11
- - Dynamic adapter loading (`fastify`)
12
- - Unified configuration system
13
- - Basic lifecycle management in the Flutry project
9
+ - Easy email sending via SMTP
10
+ - nodemailer integration
11
+ - Configuration via environment variables (SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASS)
14
12
 
15
13
  ## 🚀 Usage
16
14
 
17
15
  ```ts
18
- import { Flutry } from '@flutry/main';
19
- new Flutry().CreateInstance(); // Automatically selects the server based on the .env file
16
+ import { FlutryMail } from '@flutry/mail';
17
+
18
+ await FlutryMail.sendMail('sender@email.com', 'recipient@email.com', 'Subject', '<b>Email HTML content</b>');
20
19
  ```
21
20
 
22
- ## 📄 Licenc
21
+ > SMTP credentials must be set in your environment variables:
22
+ > SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASS
23
+
24
+ ## 📄 License
23
25
 
24
26
  MIT
25
27
 
26
28
  ## 🌐 Website
27
29
 
28
- The official website of the package: [https://flutry.com/docs/package/main](https://flutry.com/docs/package/main)
30
+ Official documentation: [https://flutry.com/docs/package/mail](https://flutry.com/docs/package/mail)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flutry/mail",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -12,11 +12,11 @@
12
12
  "license": "MIT",
13
13
  "dependencies": {
14
14
  "dotenv": "^17.2.3",
15
- "nodemailer": "^7.0.10"
15
+ "nodemailer": "^7.0.12"
16
16
  },
17
17
  "devDependencies": {
18
- "@types/node": "^24.7.0",
19
- "@types/nodemailer": "^7.0.3",
18
+ "@types/node": "^25.0.3",
19
+ "@types/nodemailer": "^7.0.4",
20
20
  "typescript": "^5.9.3"
21
21
  }
22
22
  }