Messages from /contact and /all are sent to eleonora.nocentini@gmail.com via the API route src/app/api/contact/route.ts.
Google does not allow your normal Gmail password in apps. Use an App Password:
- Sign in to Google Account with eleonora.nocentini@gmail.com.
- Turn on 2-Step Verification (required for app passwords).
- Open Security → 2-Step Verification → App passwords (or search “App passwords”).
- Create a password for “Mail” / “Other (Portfolio)”.
- Copy the 16-character password (no spaces).
GMAIL_USER=eleonora.nocentini@gmail.com
GMAIL_APP_PASSWORD=your-16-char-app-password
CONTACT_TO_EMAIL=eleonora.nocentini@gmail.comRestart npm run dev after saving.
In the wordpress-portfolio project → Settings → Environment Variables, add the same three variables for Production (and Preview if you want).
Redeploy after saving.
- Open
/contact - Fill in name, email, message → Send
- Check inbox (and spam) for subject
[Portfolio] …
If variables are missing, the form shows a clear error and the mailto link in the white card still works.