Accessing Mailpit
This guide explains how to access and use Mailpit to view emails sent by your applications.
Overviewβ
Mailpit is an email testing tool that intercepts all emails sent by your applications. This is extremely useful during development as you can see all outgoing emails without needing to configure a real SMTP server.
Accessing Mailpitβ
Once Mailpit is installed, it's accessible via web interface at:
https://mailpit.svc.dvs.sh
Viewing Emailsβ
Email Listβ
The main Mailpit interface shows a list of all intercepted emails, displaying:
- Sender address
- Recipient address
- Subject
- Timestamp
Email Detailsβ
Click on any email to view its full content:
- Headers (From, To, Subject, etc.)
- HTML content
- Plain text content
- Attachments (if any)
Featuresβ
Search and Filterβ
Mailpit provides search functionality to find specific emails:
- Search by sender, recipient, or subject
- Filter by date range
Email Actionsβ
- View HTML: See the rendered HTML email
- View Raw: See the raw email source
- Download: Download the email as
.emlfile - Delete: Remove the email from the list
Automatic Configurationβ
When Mailpit is installed, DevSpaces automatically configures your applications to send emails through Mailpit. No additional configuration is needed.
Testing Email Functionalityβ
To test that emails are being captured:
- Trigger an email from your application (password reset, order confirmation, etc.)
- Check Mailpit - the email should appear within seconds
Troubleshootingβ
Emails Not Appearingβ
If emails don't appear in Mailpit:
- Verify Mailpit is running:
dvs status - Check application logs:
dvs logs - Ensure Mailpit service is installed:
dvs service install mailpit
Access Issuesβ
If you can't access the web interface:
- Check the service status:
dvs status - Check browser console for SSL certificate errors
Next Stepsβ
- Learn how to use phpMyAdmin for database management
- Learn how to create a PrestaShop site
- Learn how to create a WordPress site