High-Deliverability SMTP Relay for Any Application
Plug enterprise email delivery into WordPress, Laravel, Postfix, Nodemailer, or any existing system in minutes. Standard TLS ports 587 and 465 with API-key authentication.
apikey | Password: mf_live_YOUR_API_KEYConfigure your stack in seconds
Copy the snippet directly into your configuration file.
// Configure WordPress to send through Mailofly SMTP Relay
define( 'SMTP_HOST', 'smtp.mailofly.com' );
define( 'SMTP_PORT', 587 );
define( 'SMTP_SECURE', 'tls' );
define( 'SMTP_AUTH', true );
define( 'SMTP_USER', 'apikey' );
define( 'SMTP_PASS', 'mf_live_YOUR_API_KEY' );
define( 'SMTP_FROM', 'orders@yourdomain.com' );
define( 'SMTP_NAME', 'Your Store Name' );Why Developers Choose Mailofly SMTP
Skip server blocklists, port 25 bans, and complex Postfix configurations. We handle sender authentication and delivery.
Verified Sending Domains
Publish the DNS records provided by Mailofly and verify your sending domain before sending.
Delivery Logs
Review message status and recorded send errors from the dashboard.
Queued Processing
Mailofly queues accepted SMTP submissions for processing. Plan quotas and sending-provider limits still apply.
Encrypted SMTP Connections
Use STARTTLS or implicit TLS with the supported SMTP endpoint.
SMTP-Compatible Applications
Configure your framework, CMS, or other SMTP-compatible application with the Mailofly SMTP endpoint.
Unified SMTP & API Dashboard
Emails sent via SMTP share the exact same deliverability radar, open/click analytics, suppression lists, and webhooks as emails sent through our REST API.
SMTP Relay vs. REST Email API
Choose the best delivery method for your stack—or use both simultaneously.
| Criteria | SMTP Relay | REST Email API |
|---|---|---|
| Best Use Case | WordPress, WooCommerce, CMS, Postfix, legacy software | Next.js, Node.js, serverless functions, mobile apps |
| Setup Complexity | Zero code: enter host, port, user, and password | Install SDK or make HTTP POST request |
| Latency & Overhead | SMTP connection required | JSON requests over HTTP |
| Advanced Features | Custom headers, MIME bodies, standard attachments | Dynamic template variables, tags, webhook signatures |
| Log Tracking | Configured plan retention | Configured plan retention |
Frequently Asked Questions about our SMTP Relay
Get Your Free SMTP Credentials in 30 Seconds
Start with 3,000 free emails every month. Verify your domain and connect any app via port 587 or 465.

