Skip to content

Added contact form support in backend - #146

Merged
MeleMannen merged 14 commits into
mainfrom
144-create-a-new-send-email-route-that-sends-an-email-from-noreplyvektorprogrammetno-to-an-email-address
Oct 5, 2026
Merged

MeleMannen merged 14 commits into
mainfrom
144-create-a-new-send-email-route-that-sends-an-email-from-noreplyvektorprogrammetno-to-an-email-address

Conversation

@MeleMannen

@MeleMannen MeleMannen commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

This PR adds a /contact endpoint that sends emails through a reusable Nodemailer mail service.

Changes

  • Added contact email route with request validation
  • Added Gmail OAuth2-based mail sending
  • Registered the route in the API

Notes

  • Only predefined Vektor email addresses are allowed
  • Requires Google OAuth2 environment variables to be configured

Closes #144

@MeleMannen MeleMannen changed the title Add contact form support in backend Added contact form support in backend Sep 14, 2026
Comment thread src/services/mail-service.ts Fixed
@MeleMannen MeleMannen self-assigned this Sep 14, 2026

@kyrkjedelen kyrkjedelen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To foreslåtte forandringer :D

Comment thread src/routers/contact.ts Outdated
Comment thread src/services/mail-service.ts Outdated

@TobiasH05 TobiasH05 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sonarqubecloud

sonarqubecloud Bot commented Oct 5, 2026

Copy link
Copy Markdown

@kyrkjedelen kyrkjedelen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOOKS good!

@MeleMannen
MeleMannen merged commit 7c6814f into main Oct 5, 2026
8 checks passed
@MeleMannen
MeleMannen deleted the 144-create-a-new-send-email-route-that-sends-an-email-from-noreplyvektorprogrammetno-to-an-email-address branch October 5, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create a new send email route that sends an email from noreply@vektorprogrammet.no to an email address.

4 participants