refactor: update email templates to use dynamic logo URLs and standardize branding to RE-Quest

This commit is contained in:
pradeepkumar
2026-04-09 21:34:04 +05:30
parent 92a29b664c
commit d80f75a39e
5 changed files with 33 additions and 53 deletions

View File

@@ -71,12 +71,12 @@ export class EmailService {
const frontendUrl = this.configService.get<string>('FRONTEND_URL') || 'http://localhost:3000';
const verificationUrl = `${frontendUrl}/verify-email?token=${token}`;
const html = getVerificationEmailTemplate({ verificationUrl, name });
const text = `Welcome to RE-QuestN! Please verify your email by clicking this link: ${verificationUrl}`;
const html = getVerificationEmailTemplate({ verificationUrl, name, frontendUrl });
const text = `Welcome to RE-Quest! Please verify your email by clicking this link: ${verificationUrl}`;
return this.sendEmail({
to: email,
subject: 'Verify Your Email - RE-QuestN',
subject: 'Verify Your Email - RE-Quest',
html,
text,
});
@@ -86,12 +86,13 @@ export class EmailService {
// PASSWORD RESET
// ==========================================
async sendPasswordResetEmail(email: string, resetUrl: string): Promise<boolean> {
const html = getPasswordResetTemplate({ resetUrl });
const frontendUrl = this.configService.get<string>('FRONTEND_URL') || 'http://localhost:3000';
const html = getPasswordResetTemplate({ resetUrl, frontendUrl });
const text = `Reset your password by clicking this link: ${resetUrl}. This link will expire in 1 hour.`;
return this.sendEmail({
to: email,
subject: 'Reset Your Password - RE-QuestN',
subject: 'Reset Your Password - RE-Quest',
html,
text,
});
@@ -103,11 +104,11 @@ export class EmailService {
async sendWelcomeEmail(email: string, name?: string): Promise<boolean> {
const frontendUrl = this.configService.get<string>('FRONTEND_URL') || 'http://localhost:3000';
const html = getWelcomeEmailTemplate({ name, frontendUrl });
const text = `Welcome to RE-QuestN, ${name || 'User'}! Your real estate journey starts now.`;
const text = `Welcome to RE-Quest, ${name || 'User'}! Your real estate journey starts now.`;
return this.sendEmail({
to: email,
subject: 'Welcome to RE-QuestN!',
subject: 'Welcome to RE-Quest!',
html,
text,
});