Quickstart
From nothing to your first captured email, in about two minutes. The credentials below are live and already yours — no sign-up, nothing to create first.
Your sandbox
Live credentials, filled into every snippet on this page as soon as they arrive.
- Host
- smtp.mailclutch.com
- Port
- 587
- Username
- mc_0000000000000000
- Password
- pw_0000000000000000
1. Set up
Replace the mail settings of your staging or development environment with the block below. Nothing else changes: Mailclutch is a normal SMTP server, and the username and password are the ones from the card above.
# .env MAIL_MAILER=smtp MAIL_HOST=smtp.mailclutch.com MAIL_PORT=587 MAIL_USERNAME=mc_0000000000000000 MAIL_PASSWORD=pw_0000000000000000 MAIL_FROM_ADDRESS="staging@example.com" MAIL_FROM_NAME="${APP_NAME}"
Then php artisan config:clear, or the cached values keep being used.
Something different in your setup? The full Laravel guide has the requirements, the other ports and what usually goes wrong.
If it is not installed yet:
composer require symfony/mailerReplace the mail settings of your staging or development environment with the block below. Nothing else changes: Mailclutch is a normal SMTP server, and the username and password are the ones from the card above.
# .env.local MAILER_DSN=smtp://mc_0000000000000000:pw_0000000000000000@smtp.mailclutch.com:587
Something different in your setup? The full Symfony guide has the requirements, the other ports and what usually goes wrong.
Replace the mail settings of your staging or development environment with the block below. Nothing else changes: Mailclutch is a normal SMTP server, and the username and password are the ones from the card above.
# settings.py EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = 'smtp.mailclutch.com' EMAIL_PORT = 587 EMAIL_HOST_USER = 'mc_0000000000000000' EMAIL_HOST_PASSWORD = 'pw_0000000000000000' EMAIL_USE_TLS = True DEFAULT_FROM_EMAIL = 'staging@example.com'
Something different in your setup? The full Django guide has the requirements, the other ports and what usually goes wrong.
Replace the mail settings of your staging or development environment with the block below. Nothing else changes: Mailclutch is a normal SMTP server, and the username and password are the ones from the card above.
# config/environments/development.rb config.action_mailer.delivery_method = :smtp config.action_mailer.perform_deliveries = true config.action_mailer.raise_delivery_errors = true config.action_mailer.smtp_settings = { address: 'smtp.mailclutch.com', port: 587, user_name: 'mc_0000000000000000', password: 'pw_0000000000000000', authentication: :plain, enable_starttls_auto: true }
Something different in your setup? The full Rails guide has the requirements, the other ports and what usually goes wrong.
If it is not installed yet:
npm install nodemailerReplace the mail settings of your staging or development environment with the block below. Nothing else changes: Mailclutch is a normal SMTP server, and the username and password are the ones from the card above.
import nodemailer from 'nodemailer'; export const mailer = nodemailer.createTransport({ host: 'smtp.mailclutch.com', port: 587, secure: false, // STARTTLS is negotiated after connecting auth: { user: 'mc_0000000000000000', pass: 'pw_0000000000000000', }, });
Something different in your setup? The full Node.js guide has the requirements, the other ports and what usually goes wrong.
If it is not installed yet:
npm install nodemailerReplace the mail settings of your staging or development environment with the block below. Nothing else changes: Mailclutch is a normal SMTP server, and the username and password are the ones from the card above.
# .env.local SMTP_HOST=smtp.mailclutch.com SMTP_PORT=587 SMTP_USER=mc_0000000000000000 SMTP_PASSWORD=pw_0000000000000000
No NEXT_PUBLIC_ prefix: a prefixed variable is inlined into the client bundle.
Something different in your setup? The full Next.js guide has the requirements, the other ports and what usually goes wrong.
Nothing to install: net/smtp is in the standard library, and the credentials go straight into the program in step 2.
Something different in your setup? The full Go guide has the requirements, the other ports and what usually goes wrong.
If it is not installed yet:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependency>
Replace the mail settings of your staging or development environment with the block below. Nothing else changes: Mailclutch is a normal SMTP server, and the username and password are the ones from the card above.
spring.mail.host=smtp.mailclutch.com spring.mail.port=587 spring.mail.username=mc_0000000000000000 spring.mail.password=pw_0000000000000000 spring.mail.properties.mail.smtp.auth=true spring.mail.properties.mail.smtp.starttls.enable=true
Something different in your setup? The full Spring guide has the requirements, the other ports and what usually goes wrong.
Add Jakarta Mail to your build (jakarta.mail, or javax.mail on older stacks). The credentials go straight into the code in step 2.
Something different in your setup? The full Java guide has the requirements, the other ports and what usually goes wrong.
Add the library:
dotnet add package MailKitNothing else to configure: the credentials go straight into the program in step 2.
Something different in your setup? The full .NET guide has the requirements, the other ports and what usually goes wrong.
Add the library:
composer require phpmailer/phpmailerNothing else to configure: the credentials go straight into the program in step 2.
Something different in your setup? The full PHP guide has the requirements, the other ports and what usually goes wrong.
Nothing to install: smtplib is in the standard library, and the credentials go straight into the script in step 2.
Something different in your setup? The full Python guide has the requirements, the other ports and what usually goes wrong.
Add the library:
[dependencies] lettre = "0.11"
Nothing else to configure: the credentials go straight into the program in step 2.
Something different in your setup? The full Rust guide has the requirements, the other ports and what usually goes wrong.
Nothing to install on most systems, and nothing to configure: the command carries the credentials.
Something different in your setup? The full cURL guide has the requirements, the other ports and what usually goes wrong.
Nothing to configure: the command carries the credentials. Install swaks if it is not there yet.
# macOS brew install swaks # Debian / Ubuntu sudo apt install swaks
Something different in your setup? The full swaks guide has the requirements, the other ports and what usually goes wrong.
Replace the mail settings of your staging or development environment with the block below. Nothing else changes: Mailclutch is a normal SMTP server, and the username and password are the ones from the card above.
# ~/.msmtprc account sandbox host smtp.mailclutch.com port 587 auth on user mc_0000000000000000 password pw_0000000000000000 from staging@example.com tls on tls_starttls on account default : sandbox
msmtp refuses to run if anyone else can read the file: chmod 600 ~/.msmtprc.
Something different in your setup? The full msmtp guide has the requirements, the other ports and what usually goes wrong.
Nothing to install and nothing to configure: the command carries the credentials.
Something different in your setup? The full PowerShell guide has the requirements, the other ports and what usually goes wrong.
Replace the mail settings of your staging or development environment with the block below. Nothing else changes: Mailclutch is a normal SMTP server, and the username and password are the ones from the card above.
# /etc/postfix/main.cf relayhost = [smtp.mailclutch.com]:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_tls_security_level = encrypt
# /etc/postfix/sasl_passwd [smtp.mailclutch.com]:587 mc_0000000000000000:pw_0000000000000000
Then sudo postmap /etc/postfix/sasl_passwd and reload Postfix. The host and port must match relayhost character for character, brackets included.
Something different in your setup? The full Postfix relay guide has the requirements, the other ports and what usually goes wrong.
Replace the mail settings of your staging or development environment with the block below. Nothing else changes: Mailclutch is a normal SMTP server, and the username and password are the ones from the card above.
# docker-compose.yml services: app: environment: SMTP_HOST: smtp.mailclutch.com SMTP_PORT: "587" SMTP_USER: mc_0000000000000000 SMTP_PASSWORD: pw_0000000000000000
Use the names your application already reads: MAIL_HOST, EMAIL_HOST, and so on.
Something different in your setup? The full Docker Compose guide has the requirements, the other ports and what usually goes wrong.
Replace the mail settings of your staging or development environment with the block below. Nothing else changes: Mailclutch is a normal SMTP server, and the username and password are the ones from the card above.
// wp-config.php — above "That's all, stop editing!" define( 'WPMS_ON', true ); define( 'WPMS_MAILER', 'smtp' ); define( 'WPMS_SMTP_HOST', 'smtp.mailclutch.com' ); define( 'WPMS_SMTP_PORT', 587 ); define( 'WPMS_SSL', 'tls' ); define( 'WPMS_SMTP_AUTH', true ); define( 'WPMS_SMTP_USER', 'mc_0000000000000000' ); define( 'WPMS_SMTP_PASS', 'pw_0000000000000000' );
Something different in your setup? The full WordPress guide has the requirements, the other ports and what usually goes wrong.
Replace the mail settings of your staging or development environment with the block below. Nothing else changes: Mailclutch is a normal SMTP server, and the username and password are the ones from the card above.
# /etc/gitlab/gitlab.rb gitlab_rails['smtp_enable'] = true gitlab_rails['smtp_address'] = "smtp.mailclutch.com" gitlab_rails['smtp_port'] = 587 gitlab_rails['smtp_user_name'] = "mc_0000000000000000" gitlab_rails['smtp_password'] = "pw_0000000000000000" gitlab_rails['smtp_authentication'] = "login" gitlab_rails['smtp_enable_starttls_auto'] = true gitlab_rails['gitlab_email_from'] = 'staging@example.com'
Then sudo gitlab-ctl reconfigure.
Something different in your setup? The full GitLab guide has the requirements, the other ports and what usually goes wrong.
Replace the mail settings of your staging or development environment with the block below. Nothing else changes: Mailclutch is a normal SMTP server, and the username and password are the ones from the card above.
# grafana.ini [smtp] enabled = true host = smtp.mailclutch.com:587 user = mc_0000000000000000 password = pw_0000000000000000 from_address = staging@example.com from_name = Grafana
In a container, the same settings are the GF_SMTP_* environment variables. Restart Grafana for the change to take.
Something different in your setup? The full Grafana guide has the requirements, the other ports and what usually goes wrong.
Replace the mail settings of your staging or development environment with the block below. Nothing else changes: Mailclutch is a normal SMTP server, and the username and password are the ones from the card above.
"smtpServer": { "host": "smtp.mailclutch.com", "port": "587", "starttls": "true", "auth": "true", "user": "mc_0000000000000000", "password": "pw_0000000000000000", "from": "staging@example.com" }
Or fill in Realm settings → Email by hand: the same host, port, StartTLS on, authentication on.
Something different in your setup? The full Keycloak guide has the requirements, the other ports and what usually goes wrong.
2. Send a test email
Trigger any email from your application: a signup, a password reset, your test suite. Or send one from Laravel directly:
Mail::raw('Hello from Laravel.', function ($message) { $message->to('anyone@example.com')->subject('Sandbox check'); });
Trigger any email from your application: a signup, a password reset, your test suite. Or send one from Symfony directly:
php bin/console mailer:test anyone@example.comTrigger any email from your application: a signup, a password reset, your test suite. Or send one from Django directly:
python manage.py sendtestemail anyone@example.comTrigger any email from your application: a signup, a password reset, your test suite. Or send one from Rails directly:
ActionMailer::Base.mail( from: 'staging@example.com', to: 'anyone@example.com', subject: 'Sandbox check', body: 'Hello from Rails.' ).deliver_now
Trigger any email from your application: a signup, a password reset, your test suite. Or send one from Node.js directly:
await mailer.sendMail({ from: 'staging@example.com', to: 'anyone@example.com', subject: 'Sandbox check', html: '<h1>Hello from Node.js</h1>', });
Trigger any email from your application: a signup, a password reset, your test suite. Or send one from Next.js directly:
// app/api/send/route.ts import nodemailer from 'nodemailer'; export async function POST() { const transporter = nodemailer.createTransport({ host: process.env.SMTP_HOST, port: Number(process.env.SMTP_PORT), auth: { user: process.env.SMTP_USER, pass: process.env.SMTP_PASSWORD, }, }); await transporter.sendMail({ from: 'staging@example.com', to: 'anyone@example.com', subject: 'Sandbox check', html: '<h1>Hello from Next.js</h1>', }); return Response.json({ sent: true }); }
The whole program, filled in with your credentials:
package main import ( "fmt" "net/smtp" ) func main() { host := "smtp.mailclutch.com" auth := smtp.PlainAuth("", "mc_0000000000000000", "pw_0000000000000000", host) msg := []byte("To: anyone@example.com\r\n" + "From: staging@example.com\r\n" + "Subject: Sandbox check\r\n" + "\r\n" + "Hello from Go.\r\n") err := smtp.SendMail( fmt.Sprintf("%s:%d", host, 587), auth, "staging@example.com", []string{"anyone@example.com"}, msg, ) if err != nil { panic(err) } }
Run it:
go run main.goTrigger any email from your application: a signup, a password reset, your test suite. Or send one from Spring directly:
@Autowired private JavaMailSender mailSender; public void sendTest() { SimpleMailMessage message = new SimpleMailMessage(); message.setFrom("staging@example.com"); message.setTo("anyone@example.com"); message.setSubject("Sandbox check"); message.setText("Hello from Spring Boot."); mailSender.send(message); }
The whole program, filled in with your credentials:
Properties props = new Properties(); props.put("mail.smtp.host", "smtp.mailclutch.com"); props.put("mail.smtp.port", "587"); props.put("mail.smtp.auth", "true"); props.put("mail.smtp.starttls.enable", "true"); Session session = Session.getInstance(props, new Authenticator() { @Override protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication("mc_0000000000000000", "pw_0000000000000000"); } }); Message message = new MimeMessage(session); message.setFrom(new InternetAddress("staging@example.com")); message.setRecipients(Message.RecipientType.TO, InternetAddress.parse("anyone@example.com")); message.setSubject("Sandbox check"); message.setText("Hello from Java."); Transport.send(message);
Call it from anywhere in your application, a main method is enough. The message is in the sandbox as soon as Transport.send returns.
The whole program, filled in with your credentials:
using MailKit.Net.Smtp; using MailKit.Security; using MimeKit; var message = new MimeMessage(); message.From.Add(MailboxAddress.Parse("staging@example.com")); message.To.Add(MailboxAddress.Parse("anyone@example.com")); message.Subject = "Sandbox check"; message.Body = new TextPart("html") { Text = "<h1>Hello from .NET</h1>" }; using var client = new SmtpClient(); await client.ConnectAsync("smtp.mailclutch.com", 587, SecureSocketOptions.StartTls); await client.AuthenticateAsync("mc_0000000000000000", "pw_0000000000000000"); await client.SendAsync(message); await client.DisconnectAsync(true);
Run it:
dotnet runIf your application reads its mail settings from configuration, the same four values go in appsettings.Development.json: the .NET guide has that block.
The whole program, filled in with your credentials:
<?php use PHPMailer\PHPMailer\PHPMailer; require 'vendor/autoload.php'; $mail = new PHPMailer(true); $mail->isSMTP(); $mail->Host = 'smtp.mailclutch.com'; $mail->Port = 587; $mail->SMTPAuth = true; $mail->Username = 'mc_0000000000000000'; $mail->Password = 'pw_0000000000000000'; $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; $mail->setFrom('staging@example.com'); $mail->addAddress('anyone@example.com'); $mail->Subject = 'Sandbox check'; $mail->isHTML(true); $mail->Body = '<h1>Hello from PHP</h1>'; $mail->send();
Save it as send.php and run it:
php send.phpThe whole program, filled in with your credentials:
import smtplib from email.message import EmailMessage message = EmailMessage() message['From'] = 'staging@example.com' message['To'] = 'anyone@example.com' message['Subject'] = 'Sandbox check' message.set_content('Hello from Python.') with smtplib.SMTP('smtp.mailclutch.com', 587) as smtp: smtp.starttls() smtp.login('mc_0000000000000000', 'pw_0000000000000000') smtp.send_message(message)
Save it as send.py and run it:
python3 send.pyThe whole program, filled in with your credentials:
use lettre::transport::smtp::authentication::Credentials; use lettre::{Message, SmtpTransport, Transport}; fn main() -> Result<(), Box<dyn std::error::Error>> { let email = Message::builder() .from("staging@example.com".parse()?) .to("anyone@example.com".parse()?) .subject("Sandbox check") .body(String::from("Hello from Rust."))?; let credentials = Credentials::new( "mc_0000000000000000".to_owned(), "pw_0000000000000000".to_owned(), ); let mailer = SmtpTransport::starttls_relay("smtp.mailclutch.com")? .port(587) .credentials(credentials) .build(); mailer.send(&email)?; Ok(()) }
Save it as src/main.rs and run it:
cargo runOne command, and the message is in the sandbox:
curl -fsS https://app.mailclutch.com/en-CA/welcome.eml | curl "smtp://smtp.mailclutch.com:587" --ssl-reqd \ --user "mc_0000000000000000:pw_0000000000000000" \ --mail-from "staging@example.com" \ --mail-rcpt "anyone@example.com" \ --upload-file -
This one pipes our sample message in, so the sandbox has something worth looking at.
One command, and the message is in the sandbox:
swaks --server smtp.mailclutch.com --port 587 -tls \ --auth LOGIN \ --auth-user "mc_0000000000000000" \ --auth-password "pw_0000000000000000" \ --from staging@example.com \ --to anyone@example.com \ --header "Subject: Sandbox check" \ --body "Hello from swaks."
Trigger any email from your application: a signup, a password reset, your test suite. Or send one from msmtp directly:
printf 'Subject: Sandbox check\n\nHello from msmtp.\n' | msmtp anyone@example.comOne command, and the message is in the sandbox:
$password = ConvertTo-SecureString "pw_0000000000000000" -AsPlainText -Force $credential = New-Object System.Management.Automation.PSCredential("mc_0000000000000000", $password) Send-MailMessage -SmtpServer "smtp.mailclutch.com" -Port 587 -UseSsl ` -Credential $credential ` -From "staging@example.com" ` -To "anyone@example.com" ` -Subject "Sandbox check" ` -Body "<h1>Hello from PowerShell</h1>" -BodyAsHtml
Trigger any email from your application: a signup, a password reset, your test suite. Or send one from Postfix relay directly:
echo "Hello from Postfix." | mail -s "Sandbox check" anyone@example.comRecreate the service so it picks up the variables (docker compose up -d), then trigger any email from your application: a signup, a password reset, your test suite.
WP Mail SMTP has an Email Test tab of its own. Or, from WP-CLI:
wp eval "wp_mail( 'anyone@example.com', 'Sandbox check', 'Hello from WordPress.' );"Trigger any email from your application: a signup, a password reset, your test suite. Or send one from GitLab directly:
# sudo gitlab-rails console Notify.test_email('anyone@example.com', 'Sandbox check', 'Hello from GitLab.').deliver_now
Alerting → Contact points → the email contact point → Test. The message lands in the sandbox with the template it would really use.
The Email tab has a Test connection button, which sends to the address on your own account. Then trigger a real one: create a user and use Credentials → Reset password.
The address in the To: field is arbitrary and safe: the credentials pick the sandbox, and the message is never relayed to the real recipient.
3. Open the sandbox
The email is there — rendered HTML, plain text, raw source, headers, attachments, and the SPF, DKIM and DMARC verdicts. It updates live, so you can leave the tab open next to your terminal.
Your sandbox is waiting.Opens in a new tab, on the credentials above. It keeps what it catches for 24 hours.
4. Keep it
A sandbox is temporary on purpose. Claim it with an account within 7 days and everything in it stays, as a sandbox of your own.
Sign up and you get an organization and one sandbox. A sandbox is an isolated mailbox: create one per client, or one per environment — whichever way you divide your work. Each has its own SMTP username and password, shown on the sandbox page; they are not your account password, and revoking a sandbox revokes them.
The Free plan allows 2 sandboxes and keeps captured email for 7 days. Every plan scores SPF, DKIM, DMARC, BIMI, List-Unsubscribe and SpamAssassin; paid plans lift both limits and add the full deliverability report, which checks your domain's DNS, the blocklists and every link.
Need someone else to look at an email? Share it — or the whole sandbox — as a link. The person opening it needs no account and takes no seat.
No SMTP? Use the address instead
Every sandbox also has its own address at @mailclutch.com. Anything sent to it lands in the sandbox, which is handy for tools you can't reconfigure.
Go further
- The full Laravel guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full Symfony guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full Django guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full Rails guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full Node.js guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full Next.js guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full Go guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full Spring guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full Java guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full .NET guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full PHP guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full Python guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full Rust guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full cURL guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full swaks guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full msmtp guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full PowerShell guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full Postfix relay guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full Docker Compose guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full WordPress guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full GitLab guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full Grafana guide: requirements, every port and encryption mode, and the usual errors with their fix.
- The full Keycloak guide: requirements, every port and encryption mode, and the usual errors with their fix.
- SMTP Setup: the reference for any client — host, ports, encryption and authentication.
- CI / Assertion: wait for an email in your test suite and assert on its content.
- All framework guides, one per stack in the selector.