P H O T O N

CONSOLE

Loading

Developer Staging & Sandbox Guide

Free SMTP Server for Testing & Local Development
Simulate Delivery • Instant API Keys • No Credit Card

Test password resets, authentication emails, and webhooks in local staging environments. Get 5,000 free monthly transactional emails with searchable activity logs.

4 min read • 5,000 Free Monthly • Zero CC Required
Direct Answer: Free SMTP Server for Testing

A free development SMTP server allows developers to test password resets, transactional templates, and API webhooks without polluting production databases or risking live domain reputation. Photon Console offers 5,000 free monthly dispatches with instant sandbox API credentials, real-time message inspection, and zero credit card requirements.

1. Why Mock Servers Aren't Enough for Staging

Tools like MailHog and local mock SMTP catchers are useful for basic template previews, but fail to replicate critical production conditions:

  • Real TLS Handshakes: Catch SSL/TLS certificate cipher negotiation errors before deploying to production.
  • Webhook Verification: Verify that your application accurately processes delivered, bounced, and opened event callbacks.
  • Payload Size & Encoding: Confirm that base64 MIME attachments and inline CSS render accurately across real mail clients.

2. How Dry-Run Email Simulation Works

Photon Console provides a dedicated X-Photon-Simulation: true header for non-production environments. When enabled:

  1. Your application connects to mail.photonrelay.com over Port 587 with your API credentials.
  2. The payload is validated against strict RFC syntax and DKIM specifications.
  3. A valid 250 OK response and unique message ID (e.g. msg_sim_8921f0a) is returned in under 200 milliseconds.
  4. The delivery event is logged in your Photon Console dashboard without sending live messages to real users.

3. Drop-in SMTP Configuration Snippets

Node.js (Nodemailer)
const nodemailer = require('nodemailer');

const transporter = nodemailer.createTransport({
  host: "mail.photonrelay.com",
  port: 587,
  auth: {
    user: "your_test_key",
    pass: "your_test_secret"
  },
  headers: {
    "X-Photon-Simulation": "true"
  }
});
PHP (.env / PHPMailer)
MAIL_MAILER=smtp
MAIL_HOST=mail.photonrelay.com
MAIL_PORT=587
MAIL_USERNAME=your_test_key
MAIL_PASSWORD=your_test_secret
MAIL_ENCRYPTION=tls

4. Development Ports (587, 465, 2525)

Many residential ISPs and local co-working spaces block outbound TCP port 25. PhotonRelay supports standard submission and alternative testing ports:

Port Encryption Type Recommended Environment
587 STARTTLS (RFC 6409) Standard staging & production default
465 Implicit SSL/TLS Legacy and secure microservices
2525 STARTTLS Bypasses residential & cloud ISP firewall blocks

Get Instant Test SMTP Credentials in 30 Seconds

Sign up for free. Dispatch up to 5,000 monthly emails with live delivery logs, dry-run simulations, and zero credit card required.

5. Frequently Asked Questions

No. Photon Console provides 5,000 free monthly emails with zero credit card required. You can generate instant SMTP and REST API credentials immediately upon signup.

Yes. Photon Console supports dry-run simulation headers. When the X-Photon-Simulation header is passed, our edge servers validate authentication and generate realistic delivery logs and webhook events without transmitting packets to live destination inboxes.

PhotonRelay accepts connections on Port 587 (STARTTLS), Port 465 (implicit SSL/TLS), and alternative non-standard development ports 2525 and 8025 to bypass local ISP firewall blocks.