← Toutes les offres
FL

feat: let job candidates send their cv from the contact form

feat: let job candidates send their cv from the contact form

Global
Publié le 17 novembre 2026

Description du poste

## Summary People who want to work at MUV have no way to apply through the website. The contact form gets a second purpose, "Trabajar en MUV", where candidates choose a clinic and attach their CV, and the clinic receives it by email. General enquiries keep working, and now also arrive by email instead of opening the visitor's mail app. ## Context - `src/components/sections/ContactForm.tsx` builds a `mailto:` link in the browser. A `mailto:` link cannot carry attachments, and it depends on the visitor having a mail app configured. - Recipient today: `site.email` = `info@clinicamuv.com` (`src/lib/site.ts`). The mailbox lives on the Raiola hosting (#62), which offers SMTP at `mail.clinicamuv.com`. - The site will run as a Node server on Dokploy (#61), so a server-side handler can send email. Credentials stay in runtime environment variables, never in the repository. - A CV is personal data: the form needs explicit consent and a link to the privacy policy (#60), and files must be validated server-side. - [ASSUMPTION] CVs go to the same mailbox as enquiries; `CAREERS_EMAIL` can route them elsewhere. ## Proposal 1. Replace the `mailto:` flow with a server action that sends the email over SMTP with `nodemailer`, configured by `SMTP_URL`, `EMAIL_FROM`, `CONTACT_EMAIL` and optional `CAREERS_EMAIL`, documented in `.env.example`. 2. Add a "Motivo" choice to the form: "Consulta o cita" (current fields) or "Trabajar en MUV" (clinic, position, optional collegiate number, CV, optional cover note). 3. CV: PDF, DOC or DOCX up to 5 MB, checked by size and file signature on the server; sent as an attachment and never stored. 4. Required privacy consent checkbox, honeypot field against bots and visitor's email as reply-to. 5. `/contacto?motivo=empleo` opens the form in candidate mode; add a "Trabaja con nosotros" link in the footer. 6. In development without `SMTP_URL`, messages are written as `.eml` files under `.mail/` so the flow can be tested locally. ## Acceptance criteria