Email System
Matchpal includes a comprehensive email system for communicating with students and providers. This guide covers template management, sending emails, and tracking delivery.
Email Capabilities
The email system supports:
- Template-based emails - Reusable messages with variable substitution
- Manual sending - One-off emails to individuals or groups
- Automated triggers - Emails sent based on system events
- Delivery tracking - Monitor send status and engagement
Email Templates
Templates are the foundation of Matchpal's email system.
Viewing Templates
- Navigate to Email → Templates
- Browse existing templates
- Search by name or content
- Filter by category or status
Template Components
Each template includes:
- Name - Internal identifier
- Subject - Email subject line (can include variables)
- Body - Email content (HTML supported)
- Variables - Available placeholders
- Category - Organizational grouping
Creating a Template
- Click "New Template"
- Enter template name
- Write subject line
- Compose body content
- Insert variables as needed
- Save template
Editing a Template
- Open the template
- Click "Edit"
- Modify subject or body
- Preview changes
- Save updates
Changes to templates affect future sends only. Previously sent emails are not affected.
Template Categories
Organize templates by purpose:
- Onboarding - Welcome emails, setup instructions
- Matching - Proposal notifications, match confirmations
- Sessions - Reminders, confirmations, follow-ups
- Billing - Grant notifications, balance updates
- Administrative - System notices, policy updates
Variables
Variables allow personalization by inserting dynamic content.
Global Variables
Available in all templates:
| Variable | Description |
|---|---|
{{student_name}} | Student's full name |
{{student_email}} | Student's email |
{{provider_name}} | Provider's full name |
{{provider_email}} | Provider's email |
{{current_date}} | Today's date |
Template-Specific Variables
Some variables are only available in certain contexts:
| Variable | Context | Description |
|---|---|---|
{{relationship_id}} | Relationship emails | Unique relationship identifier |
{{session_date}} | Session emails | Date of the session |
{{grant_balance}} | Billing emails | Current grant balance |
{{proposal_link}} | Proposal emails | Link to view proposal |
See Email Variables for the complete reference.
Using Variables
Insert variables in your template:
Hello {{student_name}},
Your session with {{provider_name}} is scheduled for {{session_date}}.
Your current balance: {{grant_balance}} hours
Sending Emails
To an Individual
- Navigate to student or provider profile
- Click "Send Email"
- Select template or compose new
- Preview with actual values
- Send immediately or schedule
To Multiple Recipients
- Navigate to Students or Providers list
- Select recipients using checkboxes
- Click "Send Email" from bulk actions
- Select template
- Review recipient list
- Send to all
From a Relationship
- Open the relationship
- Click "Send Email"
- Choose recipient (student, provider, or both)
- Select template
- Send
Previewing Emails
Before sending:
- Click "Preview"
- Variables replaced with actual values
- Review subject and body
- Make adjustments if needed
- Then send
Automated Emails
Certain emails are triggered automatically:
System Triggers
| Event | Email Sent |
|---|---|
| New proposal | Provider notified |
| Proposal accepted | Student notified |
| Proposal declined | Student notified |
| Low grant balance | Student warned |
| Session reminder | Both parties |
Configuring Triggers
- Navigate to Email → Automation
- View trigger configurations
- Enable/disable specific triggers
- Customize delay timing
- Select template to use
Email Logs
Track all email activity in the logs.
Viewing Logs
- Navigate to Email → Logs
- See all sent emails
- Filter by date, recipient, template, or status
- Click any log for details
Log Information
Each log entry shows:
- Recipient - Who received the email
- Template - Which template was used
- Subject - Actual subject line
- Sent At - Timestamp
- Status - Delivery status
Status Meanings
| Status | Meaning |
|---|---|
| Sent | Email dispatched to provider |
| Delivered | Confirmed received by mail server |
| Opened | Recipient opened the email |
| Clicked | Recipient clicked a link |
| Bounced | Email could not be delivered |
| Failed | Technical error prevented sending |
See Email Logs for detailed status information.
Delivery Tracking
Matchpal tracks engagement through the email provider (Resend):
Open Tracking
- Pixel inserted in HTML emails
- Records when email is opened
- Multiple opens may be recorded
Click Tracking
- Links rewritten through tracking
- Records each click
- Shows which links are popular
Webhook Processing
- Resend sends status updates
- Matchpal records events
- Logs updated in real-time
Best Practices
Template Design
- Keep subject lines clear and concise
- Use variables for personalization
- Include clear call-to-action
- Test across email clients
Sending
- Preview before sending to groups
- Verify recipient list
- Avoid sending during off-hours
- Monitor delivery rates
Maintenance
- Review templates periodically
- Archive unused templates
- Update variable references when needed
- Check automation triggers
Troubleshooting
Emails Not Sending
- Check email service status
- Verify recipient email valid
- Review error logs
- See Email Failures
Variables Not Replacing
- Verify variable syntax
- Check variable availability for template type
- Ensure data exists for recipient
Low Open Rates
- Review subject lines
- Check spam folder delivery
- Consider send timing
- Verify recipient list quality
Related Documentation
- Email Overview - Conceptual overview
- Email Templates - Template creation guide
- Email Variables - Complete variable reference
- Email Logs - Understanding delivery logs
- Email Failures - Troubleshooting delivery issues