nolimit-x 1.0.21 → 1.0.23
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.
- package/package.json +1 -1
- package/src/placeholders.js +1 -1
- package/src/sender.js +2 -0
- package/templates/config.json +6 -6
- package/templates/senders.txt +1 -2
package/package.json
CHANGED
package/src/placeholders.js
CHANGED
|
@@ -160,7 +160,7 @@ const dynamicPlaceholders = [
|
|
|
160
160
|
// Main function to replace placeholders in text
|
|
161
161
|
async function replacePlaceholders(text, email, fromName = '', fromEmail = '') {
|
|
162
162
|
if (!text || typeof text !== 'string') return text;
|
|
163
|
-
|
|
163
|
+
console.log('replacePlaceholders input:', text);
|
|
164
164
|
let updatedText = text;
|
|
165
165
|
|
|
166
166
|
// Perform all replacements
|
package/src/sender.js
CHANGED
|
@@ -20,6 +20,7 @@ async function sendEmailNodemailer({ email, senderEmail, subject, body, attachme
|
|
|
20
20
|
filename: att.filename,
|
|
21
21
|
content: att.content
|
|
22
22
|
}));
|
|
23
|
+
console.log('EMAIL HTML BODY:', body);
|
|
23
24
|
await transporter.sendMail({
|
|
24
25
|
from: `"${fromName}" <${senderEmail}>`,
|
|
25
26
|
to: email,
|
|
@@ -107,6 +108,7 @@ async function send(options) {
|
|
|
107
108
|
scripter: att.scripter
|
|
108
109
|
}))
|
|
109
110
|
};
|
|
111
|
+
console.log('RUST EMAIL BODY:', job.body);
|
|
110
112
|
return await sendEmailRust(job);
|
|
111
113
|
});
|
|
112
114
|
} else {
|
package/templates/config.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"smtp": [
|
|
3
3
|
{
|
|
4
|
-
"host": "smtp.
|
|
4
|
+
"host": "smtp.kolabnow.com",
|
|
5
5
|
"port": 587,
|
|
6
6
|
"secure": false,
|
|
7
|
-
"user": "
|
|
8
|
-
"pass": "
|
|
7
|
+
"user": "webertester@kolabnow.com",
|
|
8
|
+
"pass": "Moonlight@120"
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"emails_list": {
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
},
|
|
20
20
|
"configurations": {
|
|
21
21
|
"from_name": "John Doe",
|
|
22
|
-
"from_email": "
|
|
22
|
+
"from_email": "webertester@kolabnow.com",
|
|
23
23
|
"mail_subject": "Important Update",
|
|
24
24
|
"reply_to": "support@company.com",
|
|
25
25
|
"mail_priority": "3",
|
|
26
26
|
"use_attachment": false,
|
|
27
|
-
"raw_smtp":
|
|
27
|
+
"raw_smtp": true,
|
|
28
28
|
"raw_headers": {
|
|
29
29
|
"X-Custom-Header": "Custom Value",
|
|
30
30
|
"X-Mailer": "Custom Mailer v1.0",
|
|
@@ -51,4 +51,4 @@
|
|
|
51
51
|
"scripter": false
|
|
52
52
|
}
|
|
53
53
|
]
|
|
54
|
-
}
|
|
54
|
+
}
|
package/templates/senders.txt
CHANGED