Skip to content

Commit c5ed582

Browse files
committed
feat(email): integrate html-to-text for email body conversion
- Added `html-to-text` package to convert HTML email bodies to plain text alternatives. - Updated `EmailService` to handle HTML content in emails, ensuring both HTML and plain text formats are sent. - Enhanced unit tests to verify the new email sending behavior with HTML content.
1 parent 013daa2 commit c5ed582

4 files changed

Lines changed: 276 additions & 12 deletions

File tree

package-lock.json

Lines changed: 241 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"cross-env": "^10.1.0",
4747
"dayjs": "^1.11.20",
4848
"helmet": "^8.1.0",
49+
"html-to-text": "^10.0.0",
4950
"internxt-crypto": "^1.5.0",
5051
"ioredis": "^5.10.1",
5152
"nanoid": "^5.1.5",
@@ -73,6 +74,7 @@
7374
"@swc/core": "^1.15.18",
7475
"@types/chance": "^1.1.7",
7576
"@types/express": "^5.0.6",
77+
"@types/html-to-text": "^9.0.4",
7678
"@types/multer": "^2.1.0",
7779
"@types/node": "^22.15.0",
7880
"@types/nodemailer": "^8.0.0",

0 commit comments

Comments
 (0)