vasuzex 2.1.34 → 2.1.35
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.
|
@@ -47,9 +47,6 @@ export class MailManager {
|
|
|
47
47
|
*/
|
|
48
48
|
async resolve(name) {
|
|
49
49
|
const config = this.getConfig(name);
|
|
50
|
-
|
|
51
|
-
console.log('[MailManager] resolve called for mailer:', name);
|
|
52
|
-
console.log('[MailManager] getConfig returned:', JSON.stringify(config, null, 2));
|
|
53
50
|
|
|
54
51
|
if (!config || !config.transport) {
|
|
55
52
|
throw new Error(`Mailer [${name}] is not configured.`);
|
|
@@ -109,9 +106,6 @@ export class MailManager {
|
|
|
109
106
|
const nodemailer = await import('nodemailer');
|
|
110
107
|
const Mailjet = await import('node-mailjet');
|
|
111
108
|
|
|
112
|
-
// Debug: Log config keys
|
|
113
|
-
console.log('[MailManager] createMailjetTransport called with config:', JSON.stringify(config, null, 2));
|
|
114
|
-
|
|
115
109
|
// Validate credentials
|
|
116
110
|
if (!config.api_key || !config.api_secret) {
|
|
117
111
|
throw new Error(`Mailjet credentials missing. api_key: ${!!config.api_key}, api_secret: ${!!config.api_secret}`);
|
|
@@ -203,11 +197,7 @@ export class MailManager {
|
|
|
203
197
|
*/
|
|
204
198
|
getConfig(name) {
|
|
205
199
|
const mailers = this.app.config('mail.mailers', {});
|
|
206
|
-
console.log('[MailManager.getConfig] Looking for mailer:', name);
|
|
207
|
-
console.log('[MailManager.getConfig] Available mailers:', Object.keys(mailers));
|
|
208
|
-
console.log('[MailManager.getConfig] Full mailers config:', JSON.stringify(mailers, null, 2));
|
|
209
200
|
const config = mailers[name];
|
|
210
|
-
console.log('[MailManager.getConfig] Config for', name, ':', JSON.stringify(config, null, 2));
|
|
211
201
|
return config;
|
|
212
202
|
}
|
|
213
203
|
|