Class EmailTemplateService
Service for generating branded email templates
Implements
Inherited Members
Namespace: OEMS.Core.Infrastructure.EmailService
Assembly: OEMS.Core.dll
Syntax
public class EmailTemplateService : IEmailTemplateService
Constructors
EmailTemplateService(IFileService, IConfiguration)
Declaration
public EmailTemplateService(IFileService fileService, IConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
IFileService | fileService | |
IConfiguration | configuration |
Methods
GeneratePasswordResetEmailAsync(User, Organization, string)
Generates a branded password reset email
Declaration
public Task<string> GeneratePasswordResetEmailAsync(User user, Organization organization, string resetUrl)
Parameters
Type | Name | Description |
---|---|---|
User | user | The user requesting password reset |
Organization | organization | The user's organization for branding |
string | resetUrl | The password reset URL |
Returns
Type | Description |
---|---|
Task<string> | HTML email content |
GetOrganizationLogoUrlAsync(Organization)
Gets the logo URL for an organization
Declaration
public Task<string> GetOrganizationLogoUrlAsync(Organization organization)
Parameters
Type | Name | Description |
---|---|---|
Organization | organization | The organization |
Returns
Type | Description |
---|---|
Task<string> | Logo URL or default logo path |