Skip to content

Commit 003bfbe

Browse files
committed
Add confirmation email for contact submission workflow
1 parent 56e7161 commit 003bfbe

26 files changed

Lines changed: 628 additions & 32 deletions

‎_TODO.md‎

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,6 @@ https://aws.plainenglish.io/how-to-build-a-chatbot-using-aws-lex-and-lambda-in-2
1212

1313
- Re-enable link validator in `astro.config.ts` when pdf / downloads sorted out
1414

15-
## Email Sending Locations
16-
17-
These are the files where HTML is built as string literals and then passed to Resend:
18-
19-
- Contact form email HTML
20-
21-
`src/actions/contact/responder.ts:50`
22-
Function: `generateEmailContent(data, files)`
23-
It returns a full <!DOCTYPE html>... string built from form fields and attachments.
24-
25-
- Newsletter confirmation email HTML
26-
27-
`src/actions/newsletter/templates/confirmationHtml.ts:1`
28-
Function: `generateConfirmationEmailHtml(firstName, confirmUrl, expiresIn)`
29-
Full HTML email template returned as a template literal.
30-
31-
- Newsletter welcome email HTML
32-
33-
`src/actions/newsletter/templates/welcomeHtml.ts:1`
34-
Function: `generateWelcomeEmailHtml(firstName)`
35-
Full HTML email template returned as a template literal.
36-
37-
- DSAR verification email HTML
38-
39-
`src/actions/gdpr/email/dsarHtml.ts:6`
40-
Function: `dsarVerificationEmailHtml(props)`
41-
Full HTML email template returned as a template literal.
42-
4315
## Contact Page File Uploads
4416

4517
- Uppy, Tus server, whatever other server needed for file upload on Contact Form component
@@ -58,5 +30,3 @@ Full HTML email template returned as a template literal.
5830
## Contact Form
5931

6032
- `0/2000` characters should show number of characters left instead
61-
62-
## Content Issues

0 commit comments

Comments
 (0)