The contact form supports two integration methods:
Option A: Gmail SMTP (Recommended for Google Workspace)
- Enable 2-factor authentication on your Google account
- Generate an app-specific password:
- Go to Google Account settings
- Security → 2-Step Verification → App passwords
- Generate password for "Mail"
- Create
.env.localfile with:ADMIN_EMAIL_USER=your-email@indusrivergroup.com ADMIN_EMAIL_PASSWORD=your-16-character-app-password
Option B: Gmail API (More secure)
- Enable Gmail API in Google Cloud Console
- Create service account credentials
- Install googleapis:
npm add googleapis - Update
lib/email.tswith API implementation
Option C: Third-party Service
- SendGrid, Resend, Mailgun, etc.
- Add API key to
.env.local - Update email service in
lib/email.ts
- Create a Google Form at forms.google.com
- Add these fields:
- Contact Type (dropdown): Business Owner, Investor, Intermediary, Other
- Full Name (text)
- Email Address (email)
- Company/Organization (text)
- Role/Title (text)
- Message (paragraph)
- Get the form URL and update
GOOGLE_FORM_URLin.env.local - Update the iframe src in
app/contact/page.tsx
- ✅ Frontend form with validation
- ✅ API endpoint created (
/api/contact) - ✅ Form submissions logged locally (email delivery optional)
- ⏳ Email service configuration (optional enhancement)
- ⏳ Google Form needs to be created and linked