Email Configuration
Set up transactional emails and notifications
UserVote sends various transactional emails for authentication, notifications, and updates. This guide explains how to configure email settings for reliable delivery.
Email Overview
Types of Emails:
| Category | Examples |
|---|---|
| Authentication | Login links, password reset |
| Notifications | Status changes, new comments |
| Digests | Weekly summaries, updates |
| Admin | Alerts, reports |
Email Requirements:
- SMTP server or email service
- Verified sender domain
- SPF/DKIM configuration (recommended)
- Dedicated sending address
Current Status:
View email status at Admin → Settings → Email
SMTP Configuration
Setting Up SMTP:
- Go to Admin → Settings → Email
- Select SMTP as provider
- Enter configuration:
Required Fields:
| Field | Description | Example |
|---|---|---|
| Host | SMTP server address | smtp.example.com |
| Port | Server port | 587 |
| Username | Auth username | user@example.com |
| Password | Auth password | •••••••• |
| From | Sender address | noreply@company.com |
| From Name | Sender name | UserVote |
Security Options:
- TLS: Recommended for port 587
- SSL: For port 465
- None: Not recommended
- Click Test Connection
- Save settings if successful
Email Service Providers
Supported Providers:
SendGrid:
- Get API key from SendGrid
- Select SendGrid as provider
- Enter API key
- Set verified sender
Mailgun:
- Get API key and domain
- Select Mailgun as provider
- Enter credentials
- Configure sending domain
Amazon SES:
- Set up SES in AWS
- Verify sender identity
- Get SMTP credentials
- Enter in email settings
Postmark:
- Create Postmark account
- Get server token
- Select Postmark provider
- Enter token
Provider Comparison:
| Provider | Best For | Price Range |
|---|---|---|
| SendGrid | High volume | Free-$$ |
| Mailgun | Developers | Free-$$ |
| SES | AWS users | $ |
| Postmark | Deliverability | $$ |
Sender Authentication
Why Authenticate:
- Improves deliverability
- Prevents spoofing
- Builds sender reputation
- Required by many providers
SPF Configuration:
Add DNS TXT record:
v=spf1 include:_spf.yourprovider.com ~allDKIM Configuration:
- Get DKIM key from provider
- Add DNS TXT record
- Verify in provider dashboard
DMARC Configuration:
Add DNS TXT record:
v=DMARC1; p=quarantine; rua=mailto:dmarc@company.comVerification:
- Send test email
- Check email headers
- Use authentication checker tool
- Monitor in provider dashboard
Email Templates
Template Types:
| Template | When Sent |
|---|---|
| Welcome | New user registration |
| Magic Link | Passwordless login |
| Password Reset | Reset request |
| Idea Submitted | Confirmation |
| Status Changed | Idea update |
| Comment Added | New comment |
| Weekly Digest | Summary email |
Customizing Templates:
- Go to Settings → Email → Templates
- Select template to edit
- Modify content
- Preview changes
- Save template
Template Variables:
{{user.name}}- User's name{{idea.title}}- Idea title{{product.name}}- Product name{{action_url}}- Call to action link{{company.name}}- Your company
Notification Settings
Email Notification Types:
User Notifications:
- Idea status changes
- Responses to comments
- Votes on their ideas
- Weekly digest
Admin Notifications:
- New idea submissions
- Reported content
- System alerts
- Daily/weekly summaries
Configuring Notifications:
- Go to Settings → Notifications
- Enable/disable notification types
- Set delivery frequency
- Configure recipients for admin alerts
User Preferences:
Users can configure in their profile:
- Which notifications to receive
- Preferred frequency
- Digest vs immediate
- Unsubscribe options
Testing Email
Test Connection:
- Go to Settings → Email
- Click Test Connection
- Verify SMTP connectivity
- Check for errors
Send Test Email:
- Enter recipient address
- Click Send Test
- Check inbox for email
- Verify delivery and formatting
Troubleshooting:
| Issue | Possible Cause |
|---|---|
| Connection failed | Wrong host/port |
| Auth failed | Invalid credentials |
| Not delivered | Spam blocked |
| Slow delivery | Rate limiting |
Debug Mode:
Enable email logging to troubleshoot:
- Go to Settings → Email → Advanced
- Enable Debug Logging
- Send test email
- Check logs for details
Delivery Monitoring
Email Dashboard:
View at Admin → Analytics → Email
Metrics:
| Metric | Description |
|---|---|
| Sent | Total emails sent |
| Delivered | Successfully received |
| Bounced | Failed to deliver |
| Opened | Recipients opened |
| Clicked | Links clicked |
Bounce Handling:
- Soft bounces: Temporary, retry
- Hard bounces: Permanent, remove
- Auto-cleanup option available
Best Practices:
✓ Monitor bounce rate (keep < 2%)
✓ Clean email list regularly
✓ Handle unsubscribes properly
✓ Watch for spam complaints
✓ Maintain sender reputation
Common Issues
Email Not Delivered:
- Check spam/junk folder
- Verify sender authentication
- Review bounce messages
- Check provider logs
Slow Delivery:
- Check rate limits
- Verify server response
- Consider async sending
- Review queue status
Formatting Issues:
- Test in multiple clients
- Use inline CSS
- Keep templates simple
- Test dark mode
Authentication Errors:
- Verify credentials
- Check special characters
- Confirm account status
- Review firewall rules
Getting Help:
- Check provider status page
- Review error logs
- Contact provider support
- Post in community forum