Fix email template logo URLs
Build And Push Image / docker (push) Has been cancelled
Details
Build And Push Image / docker (push) Has been cancelled
Details
- Fix logo URLs in all email templates to use absolute HTTPS URL - Ensures MonacoUSA logo displays correctly in all email clients - Updated all email service methods to use https://portal.monacousa.org/MONACOUSA-Flags_376x376.png
This commit is contained in:
parent
ea6a722364
commit
13cf728ab2
|
|
@ -243,7 +243,7 @@ export class EmailService {
|
|||
const config = useRuntimeConfig();
|
||||
const templateData = {
|
||||
...data,
|
||||
logoUrl: data.logoUrl || `${config.public.domain}/MONACOUSA-Flags_376x376.png`,
|
||||
logoUrl: data.logoUrl || 'https://portal.monacousa.org/MONACOUSA-Flags_376x376.png',
|
||||
baseUrl: config.public.domain || 'https://portal.monacousa.org',
|
||||
email: data.email || to
|
||||
};
|
||||
|
|
@ -274,7 +274,7 @@ export class EmailService {
|
|||
|
||||
const templateData = {
|
||||
...data,
|
||||
logoUrl: data.logoUrl || `${useRuntimeConfig().public.domain}/MONACOUSA-Flags_376x376.png`
|
||||
logoUrl: data.logoUrl || 'https://portal.monacousa.org/MONACOUSA-Flags_376x376.png'
|
||||
};
|
||||
|
||||
const html = template(templateData);
|
||||
|
|
@ -299,7 +299,7 @@ export class EmailService {
|
|||
|
||||
const templateData = {
|
||||
...data,
|
||||
logoUrl: data.logoUrl || `${useRuntimeConfig().public.domain}/MONACOUSA-Flags_376x376.png`
|
||||
logoUrl: data.logoUrl || 'https://portal.monacousa.org/MONACOUSA-Flags_376x376.png'
|
||||
};
|
||||
|
||||
const html = template(templateData);
|
||||
|
|
@ -324,7 +324,7 @@ export class EmailService {
|
|||
|
||||
const templateData = {
|
||||
...data,
|
||||
logoUrl: data.logoUrl || `${useRuntimeConfig().public.domain}/MONACOUSA-Flags_376x376.png`
|
||||
logoUrl: data.logoUrl || 'https://portal.monacousa.org/MONACOUSA-Flags_376x376.png'
|
||||
};
|
||||
|
||||
const html = template(templateData);
|
||||
|
|
@ -346,7 +346,7 @@ export class EmailService {
|
|||
|
||||
const templateData = {
|
||||
testTime: new Date().toISOString(),
|
||||
logoUrl: `${useRuntimeConfig().public.domain}/MONACOUSA-Flags_376x376.png`,
|
||||
logoUrl: 'https://portal.monacousa.org/MONACOUSA-Flags_376x376.png',
|
||||
smtpHost: this.config.host,
|
||||
fromAddress: this.config.fromAddress
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue