How it works
Yasumu’s SMTP module:- Runs a local catch-all SMTP server on a configurable port
- Captures all incoming emails regardless of recipient
- Stores emails for inspection and debugging
- Requires no external email services or accounts
- Works completely offline
SMTP configuration file
SMTP settings are stored inyasumu/smtp.ysl:
Getting started
Check SMTP status
Open your workspace and navigate to the Email/SMTP section to see if the server is running.
Note the port number
The SMTP server runs on a specific port (e.g., 50611). You’ll use this in your application.
Configure your application
Point your application’s SMTP settings to
localhost with the Yasumu port.Programmatic SMTP management
Getting SMTP configuration
Updating SMTP configuration
Listing emails
Getting a specific email
Deleting emails
Configuring your application
Configure your application to send emails through Yasumu’s SMTP server:Testing email workflows
Test registration emails
Test password reset flow
Test notification emails
Automation and testing
Integration with test suites
Email assertions helper
Best practices
- Clear between tests: Delete emails after each test to avoid false positives
- Use unique identifiers: Include test-specific data in emails for easy identification
- Wait appropriately: Give your application time to send emails before checking
- Check multiple criteria: Verify recipient, subject, and content
- Test error cases: Ensure emails are sent (or not sent) in error scenarios
- Inspect HTML and text: Verify both HTML and plain text versions
- Test attachments: If your app sends attachments, verify them
Common use cases
Testing email templates
Quickly iterate on email designs by sending test emails and viewing them in Yasumu.Verification workflows
Test account verification, email confirmation, and two-factor authentication flows.Notification systems
Validate that notifications are sent correctly for events like comments, mentions, or updates.Transactional emails
Test order confirmations, receipts, shipping notifications, and other transactional emails.Scheduled emails
Verify that scheduled digests, reminders, and reports are sent as expected.Next steps
REST requests
Test APIs that send emails
Environment variables
Configure SMTP settings per environment