How It Works
The Email integration uses nodemailer with Gmail SMTP to:- Format event data into HTML templates
- Send professional-looking notifications
- Include all event details in a structured layout
Email notifications are automatically enabled for all users. Your email address is used from your account registration.
Prerequisites
No additional setup required! Email notifications work automatically:- Your email is taken from your account during registration
- All events are automatically sent to this email
- No configuration needed in account settings
Email Format
Email notifications are sent with:- From:
Ping Pilot <[email protected]> - Subject: “PingPilot Alert”
- Format: HTML with responsive design
HTML Template Structure
Each email includes:- Header: Event type with emoji indicator
- Event Details Card:
- Category name
- Description
- Color code (with visual preview)
- Timestamp
- Custom Fields Table: Your event-specific data
- Footer: Link to dashboard and branding
Example Email
The actual email is fully styled with CSS, colors, and responsive design. The above is a text representation.
Technical Implementation
The email integration uses nodemailer with Gmail SMTP:src/lib/email.ts:3.
Email Template Function
The HTML template is generated dynamically:Testing Email Notifications
Test your email integration:Email Delivery
From the event handler (src/app/api/v1/event/route.ts:182):
- Consistent branding
- Responsive design
- Color-coded categories
- Structured data tables
- Call-to-action link to dashboard
SMTP Configuration
SMTP configuration is managed by PingPilot administrators. Users don’t need to configure SMTP settings.
SMTP_EMAIL: Gmail account for sending emailsSMTP_PASSWORD: App-specific password for Gmail
Troubleshooting
Not receiving emails
Not receiving emails
Check the following:
- Check your spam/junk folder
- Verify your email address is correct in your account settings
- Check if your email provider is blocking emails from PingPilot
- Look for delivery status in your PingPilot dashboard
Emails going to spam
Emails going to spam
To prevent this:
- Add
[email protected]to your contacts - Mark a PingPilot email as “Not Spam”
- Create a filter to always allow emails from PingPilot
Email formatting issues
Email formatting issues
If the email doesn’t look right:
- Some email clients strip CSS styling
- Try viewing in a different email client
- Enable HTML emails in your email settings
- Contact support if issues persist
Failed delivery status
Failed delivery status
If your dashboard shows “FAILED” delivery:
- Check the error logs in the dashboard
- Verify your email address is valid
- Contact PingPilot support for SMTP issues
Email Best Practices
Updating Your Email
To change your email address:- Update your account email in PingPilot settings
- Verify the new email address
- Future notifications will be sent to the new address
Next Steps
Discord Integration
Add Discord notifications
Telegram Integration
Set up Telegram alerts