Skip to content

feat: Add application confirmation email#10

Merged
andreas-vester merged 1 commit intomainfrom
feat/confirmation_email-7
Nov 12, 2025
Merged

feat: Add application confirmation email#10
andreas-vester merged 1 commit intomainfrom
feat/confirmation_email-7

Conversation

@andreas-vester
Copy link
Copy Markdown
Owner

Title: feat: Add application confirmation email

This pull request resolves issue #7 by implementing an automated confirmation email for applicants upon successful submission of a funding application.

Description

This change enhances the user experience by providing immediate, persistent confirmation that an application has been received. The email contains a full summary of the submitted data, confirmation of any file attachments, and a link to the application archive.

Key Changes

  • Backend:

    • Added a new Jinja2 template application_confirmation.html) for the email body.
    • Implemented a send_confirmation_email function in main.py to encapsulate the email sending logic.
    • Integrated the email sending function into the /applications endpoint, which is triggered after an application is successfully saved to the database.
  • Frontend:

    • The ApplicationForm now includes a file input field with client-side validation for file type and size.
    • The UI has been improved to show the selected file and allow for its removal before submission.

@andreas-vester andreas-vester self-assigned this Nov 12, 2025
@andreas-vester andreas-vester added the enhancement New feature or request label Nov 12, 2025
This commit introduces an automated email notification to applicants upon
successful submission of a funding application.

Previously, the user only received a brief notification in the frontend.
This change improves the user experience by providing immediate and
persistent confirmation of their submission.

The confirmation email includes:
- A summary of all submitted application details.
- Confirmation of the file upload, if a file was attached.
- A link to the application archive to view the status.

This is implemented by:
- Adding a new Jinja2 email template.
- Creating a `send_confirmation_email` function in the backend.
- Integrating this function into the application submission endpoint.

Closes #7
@andreas-vester andreas-vester force-pushed the feat/confirmation_email-7 branch from 94aad86 to e8ec81f Compare November 12, 2025 20:42
@andreas-vester andreas-vester merged commit ada0ed6 into main Nov 12, 2025
3 checks passed
@andreas-vester andreas-vester deleted the feat/confirmation_email-7 branch November 12, 2025 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant