FHC Email Templates

Custom email templates for First Healthcare Consultants Supabase authentication

📧 Available Templates

✅ Email Confirmation

Template for new user registration confirmations

View Template

🔐 Password Recovery

Template for password reset and account recovery

View Template

✨ Magic Link

Template for passwordless authentication links

View Template

👥 User Invitation

Template for team member invitations

View Template

⚙️ Supabase & Email Template Environment Variables

Use these environment variables in your Supabase or Compose configuration:

MAILER_TEMPLATES_INVITE=https://your-coolify-domain.com/invite.html MAILER_TEMPLATES_CONFIRMATION=https://your-coolify-domain.com/confirmation.html MAILER_TEMPLATES_RECOVERY=https://your-coolify-domain.com/recovery.html MAILER_TEMPLATES_MAGIC_LINK=https://your-coolify-domain.com/magic_link.html MAILER_TEMPLATES_EMAIL_CHANGE=https://your-coolify-domain.com/email_change.html MAILER_SUBJECTS_CONFIRMATION=Your confirmation subject MAILER_SUBJECTS_RECOVERY=Your recovery subject MAILER_SUBJECTS_MAGIC_LINK=Your magic link subject MAILER_SUBJECTS_EMAIL_CHANGE=Your email change subject MAILER_SUBJECTS_INVITE=Your invite subject

📋 Setup Instructions:

  1. Replace your-coolify-domain.com with your actual Coolify domain
  2. Set these variables in your .env file or Compose environment
  3. Restart your Supabase instance to apply changes

🛠️ Generate Your Environment Variables














          

💡 How to use:

  1. Enter your domain and custom subject lines
  2. Click Generate to get your environment variable block
  3. Copy and paste the block into your .env or Compose file

🔧 API Endpoints

This service also provides API endpoints for template management:

GET /api/templates - List all templates
GET /api/templates/:name - Get specific template
PUT /api/templates/:name - Update template
POST /api/preview/:name - Preview template with variables
GET /api/supabase-config - Get Supabase configuration
GET /health - Health check
✅ Service Status: Email templates service is running and ready for use.