diff --git a/backend/src/features/notifications/README.md b/backend/src/features/notifications/README.md index a99960c..77014cc 100644 --- a/backend/src/features/notifications/README.md +++ b/backend/src/features/notifications/README.md @@ -97,7 +97,7 @@ Templates use `{{variableName}}` syntax for variable substitution. ### Environment Variables - `RESEND_API_KEY` - Resend API key (required, stored in secrets) -- `FROM_EMAIL` - Sender email address (default: noreply@motovaultpro.com) +- `FROM_EMAIL` - Sender email address (default: hello@notify.motovaultpro.com) ### Email Delivery - Uses Resend API for transactional emails diff --git a/backend/src/features/notifications/domain/email-layout/base-layout.ts b/backend/src/features/notifications/domain/email-layout/base-layout.ts index d09344a..d6bc21c 100644 --- a/backend/src/features/notifications/domain/email-layout/base-layout.ts +++ b/backend/src/features/notifications/domain/email-layout/base-layout.ts @@ -7,7 +7,7 @@ import { EMAIL_STYLES } from './email-styles'; // External logo URL - hosted on GitHub for reliability -const LOGO_URL = 'https://raw.githubusercontent.com/ericgullickson/images/c58b0e4773e8395b532f97f6ab529e38ea4dc8be/motovaultpro-auth0-small.png'; +const LOGO_URL = 'https://motovaultpro.com/images/logos/motovaultpro-auth0-small.png'; /** * Renders the complete HTML email layout with branding @@ -65,10 +65,10 @@ export function renderEmailLayout(content: string): string { Login to MotoVaultPro
- Manage Email Preferences + Manage Email Preferences
- © {new Date().getFullYear()} MotoVaultPro. All rights reserved. + © ${new Date().getFullYear()} MotoVaultPro. All rights reserved.
diff --git a/backend/src/features/notifications/domain/email.service.ts b/backend/src/features/notifications/domain/email.service.ts index 8a3a31e..baa1c15 100644 --- a/backend/src/features/notifications/domain/email.service.ts +++ b/backend/src/features/notifications/domain/email.service.ts @@ -16,7 +16,7 @@ export class EmailService { } this.resend = new Resend(apiKey); - this.fromEmail = process.env['FROM_EMAIL'] || 'info@notify.motovaultpro.com'; + this.fromEmail = process.env['FROM_EMAIL'] || 'hello@notify.motovaultpro.com'; } /** @@ -33,6 +33,10 @@ export class EmailService { to, subject, html, + headers: { + 'List-Unsubscribe': '