diff --git a/frontend/src/lib/components/modal/CompanyReportDeliveryModal.svelte b/frontend/src/lib/components/modal/CompanyReportDeliveryModal.svelte index 11b1cfd..77c47b3 100644 --- a/frontend/src/lib/components/modal/CompanyReportDeliveryModal.svelte +++ b/frontend/src/lib/components/modal/CompanyReportDeliveryModal.svelte @@ -23,9 +23,9 @@ // defaults used by the server when no subject or body is set; mirrored here so // the editor shows what will actually be sent. keep in sync with the backend // defaultReportEmailSubject and defaultReportEmailBody constants. - const DEFAULT_EMAIL_SUBJECT = 'Campaign report: {{.CampaignName}}'; + const DEFAULT_EMAIL_SUBJECT = 'Campaign report: {{.CompanyName}} - {{.CampaignName}}'; const DEFAULT_EMAIL_BODY = - '

The phishing simulation report for {{.CampaignName}} is attached.

'; + '

Hi,

The report for {{.CampaignName}} is ready and attached.

'; // local state let config = null; diff --git a/frontend/src/routes/campaign/[id]/+page.svelte b/frontend/src/routes/campaign/[id]/+page.svelte index e99479d..0c8c350 100644 --- a/frontend/src/routes/campaign/[id]/+page.svelte +++ b/frontend/src/routes/campaign/[id]/+page.svelte @@ -414,7 +414,7 @@ const rawEvents = (res.data?.rows ?? []) .filter((v) => v.sendAt) .map((v) => ({ - id: `sched_${v.id ?? (v.recipient?.email + '_' + v.sendAt)}`, + id: `sched_${v.id ?? v.recipient?.email + '_' + v.sendAt}`, createdAt: v.sendAt, eventName: 'campaign_recipient_scheduled', recipient: v.recipient @@ -3002,8 +3002,7 @@ ok="Send" >
- Send the PDF report for {campaign?.name} to the recipient group configured for - this company.
Configure recipients and SMTP under the company's Reports settings. + Send the campaign PDF report to the recipient group configured for this company.
- {#if !isCompanyContext && isReportPDFEnabled} + {#if isReportPDFEnabled}

Default HTML template used when generating campaign PDF reports. Companies without their own