This guide walks you through capturing your first email with Mailloop. No API key or SDK required.
1. Create a Sandbox
Go to your dashboard and click Create Sandbox. Give it a name like my-first-sandbox.
The dashboard shows your sandbox's SMTP credentials: host, port, username, and password.
2. Configure SMTP
Use these credentials in your application's email configuration:
| Setting | Value |
|---|---|
| Host | sandbox.mailloop.io |
| Port | 587 (STARTTLS) or 465 (SSL/TLS) |
| Username | Your sandbox username |
| Password | Your sandbox password |
3. Send a Test Email
Here is an example using Node.js with Nodemailer:
const nodemailer = require('nodemailer');
const transporter = nodemailer.createTransport({
host: 'sandbox.mailloop.io',
port: 587,
secure: false,
auth: {
user: 'your-sandbox-username',
pass: 'your-sandbox-password'
}
});
await transporter.sendMail({
from: '[email protected]',
to: '[email protected]',
subject: 'Hello from Mailloop',
text: 'This is a test email.',
html: '<h1>Hello</h1><p>This is a test email.</p>'
}); The recipient address does not matter. All emails sent through the sandbox's SMTP credentials are captured regardless of the to field.
4. Check the Dashboard
Open your sandbox in the Mailloop dashboard. Your email appears in the inbox within seconds. Click it to see the rendered HTML, plain text, headers, and attachments.
You can toggle between desktop and mobile viewports to preview how the email looks on different devices.
Next Steps
- SMTP Configuration -- All ports, security options, and examples in Python, PHP, Ruby, and more
- Receiving Emails -- Accept inbound email from external sources into your sandbox
- Automated Testing -- Set up the SDK for CI/CD and programmatic email verification