fix(mail): refactor(mail): Remove Mailgun references from PlatformService. Update keywords, error messages, and documentation to use MTA exclusively.

This commit is contained in:
2025-05-08 01:37:38 +00:00
parent 0e914a3366
commit d3d197d9d3
9 changed files with 36 additions and 15 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@serve.zone/platformservice',
version: '2.8.2',
version: '2.8.4',
description: 'A multifaceted platform service handling mail, SMS, letter delivery, and AI services.'
}

View File

@ -69,10 +69,10 @@ export class ApiManager {
return status;
}
// For Mailgun, we don't have a status check implementation currently
// Status tracking not available if MTA is not configured
return {
status: 'unknown',
details: { message: 'Status tracking not available for current provider' }
details: { message: 'Status tracking not available without MTA configuration' }
};
})
);

View File

@ -25,7 +25,7 @@ export interface IEmailConstructorOptions {
}
/**
* Email service with support for both Mailgun and local MTA
* Email service with MTA support
*/
export class EmailService {
public platformServiceRef: SzPlatformService;
@ -128,7 +128,7 @@ export class EmailService {
}
/**
* Send an email using the configured provider (Mailgun or MTA)
* Send an email using the MTA
* @param email The email to send
* @param to Recipient(s)
* @param options Additional options
@ -142,7 +142,7 @@ export class EmailService {
if (this.config.useMta && this.mtaConnector) {
return this.mtaConnector.sendEmail(email, to, options);
} else {
throw new Error('No email provider configured');
throw new Error('MTA not configured');
}
}