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:GMAIL_USER=your-email@indusrivergroup.com GMAIL_APP_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) - ⏳ Email service needs configuration
- ⏳ Google Form needs to be created and linked
- Choose your preferred email method and configure
.env.local - Create Google Form and update the URL
- Test both integration methods
- Update email address in API route if different from
info@indusrivergroup.com