Email Configuration.
Set up email sending for notifications and verification.
Reward Loyalty sends emails for registration, password resets, and notifications. Configure your email provider and sender settings.
Sender Settings (Admin Dashboard)
You can configure the sender name and address via the Admin Dashboard:
- Navigate to Settings in the admin sidebar
- Click the Email Settings tab
- Configure the following:
| Setting | Description |
|---|---|
| Mail From Name | The name that appears as the sender of outgoing emails |
| Mail From Address | The email address used as the sender for outgoing emails |
- Click Save Changes
The Email Preview section shows how your emails will appear to recipients.
Note: Dashboard settings override environment file values for these fields.
What These Settings Affect
Your sender name and address appear on all system-generated emails:
- Welcome emails for new members
- Email verification and OTP codes
- Point balance notifications
- Reward redemption confirmations
- Staff notifications
- Partner account emails
Email Provider Configuration (.env)
SMTP and email provider settings must be configured in your .env file. These cannot be changed via the Admin Dashboard.
Basic SMTP Configuration
MAIL_MAILER=smtp
MAIL_HOST=smtp.example.com
MAIL_PORT=587
MAIL_USERNAME=your_username
MAIL_PASSWORD=your_password
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"
Common Providers
SMTP (General)
MAIL_MAILER=smtp
MAIL_HOST=your-smtp-server.com
MAIL_PORT=587
MAIL_USERNAME=your_username
MAIL_PASSWORD=your_password
MAIL_ENCRYPTION=tls
Gmail
MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=your_app_password
MAIL_ENCRYPTION=tls
Note: Gmail requires an App Password, not your regular password. Enable 2FA and generate an App Password in your Google account security settings.
Mailgun
MAIL_MAILER=mailgun
MAILGUN_DOMAIN=your-domain.mailgun.org
MAILGUN_SECRET=your-api-key
MAILGUN_ENDPOINT=api.mailgun.net
Postmark
MAIL_MAILER=postmark
POSTMARK_TOKEN=your-api-token
Amazon SES
MAIL_MAILER=ses
AWS_ACCESS_KEY_ID=your-access-key
AWS_SECRET_ACCESS_KEY=your-secret-key
AWS_DEFAULT_REGION=us-east-1
Resend
MAIL_MAILER=resend
RESEND_KEY=your-api-key
What Can Be Configured Where
| Setting | Admin Dashboard | .env File |
|---|---|---|
| Mail From Name | ✅ Yes | ✅ Yes |
| Mail From Address | ✅ Yes | ✅ Yes |
| SMTP Host/Port | ❌ No | ✅ Yes |
| SMTP Username/Password | ❌ No | ✅ Yes |
| Email Provider (mailer) | ❌ No | ✅ Yes |
| API Keys (Mailgun, etc.) | ❌ No | ✅ Yes |
Spam Prevention
If registration emails land in spam:
- Configure SPF and DKIM records on your domain
- Use a reputable email provider (Mailgun, Postmark, SES)
- Avoid spam trigger words in email content
- Use a dedicated sending domain separate from your marketing emails
Registration Link Setting
Long URLs in registration emails may trigger spam filters. If you have deliverability issues:
APP_REGISTRATION_EMAIL_LINK=false
This disables the automatic login link in registration emails.
Testing
After configuring, test email sending:
- Register a new test account
- Check if the verification email arrives
- Verify it doesn't land in spam
- Check the sender name and address appear correctly
Troubleshooting
Emails not sending:
- Verify credentials are correct
- Check your provider's sending limits
- Review
storage/logs/laravel.logfor errors - Ensure firewall allows outbound SMTP connections
Emails in spam:
- Configure SPF/DKIM records for your domain
- Use a dedicated sending domain
- Consider a transactional email service (Mailgun, Postmark)
Wrong sender name/address:
- Check Admin Dashboard settings (they override .env)
- Clear config cache:
php artisan config:clear
Related Topics
- Email Configuration (Installation) — Complete guide to configuring email during installation, including provider-specific setup steps
- OTP & Login Issues — Troubleshooting verification codes and login problems
- System Settings — All admin configuration options
- Branding — Customize your platform appearance