Skip to main content
MailGlyph includes an SMTP relay so you can send emails from apps and tools that support SMTP.
Your sender (From) domain must already be added and verified in your project before SMTP sends are accepted. See Verifying domains.

SMTP credentials

Use these credentials in your SMTP client:
  • SMTP server: smtp-out.mailglyph.com
  • Username: mailglyph
  • Password: your project secret key
  • Port (STARTTLS): 587
  • Port (SSL/TLS): 465

How to set it up

1

Verify your sending domain

Add and verify the domain you will use in the From address.
2

Collect SMTP settings

Copy SMTP host, ports, username, and your project secret key from your SMTP settings.
3

Configure your app or email client

Set SMTP auth with username mailglyph and password = your project secret key.
4

Send a test email

Send a message from a verified sender address like [email protected].

SMTP behavior and limits

  • Authentication is required for every SMTP session.
  • Sender domain must belong to your project and be verified.
  • Maximum recipients per message is 5.
  • Maximum message size is 10 MB.
  • Messages must include:
    • a valid sender
    • at least one recipient
    • a subject
    • body content (HTML or text)
Attachments are supported.

Example (Node.js / Nodemailer)

import nodemailer from "nodemailer";

const transporter = nodemailer.createTransport({
  host: "smtp-out.mailglyph.com",
  port: 587,
  secure: false, // STARTTLS
  auth: {
    user: "mailglyph",
    pass: process.env.MAILGLYPH_SECRET_KEY,
  },
});

await transporter.sendMail({
  from: "Acme <[email protected]>",
  to: "[email protected]",
  subject: "Test via MailGlyph SMTP",
  text: "Hello from SMTP",
});

Example (Python / smtplib)

import smtplib
from email.mime.text import MIMEText

msg = MIMEText("Hello from SMTP")
msg["Subject"] = "Test via MailGlyph SMTP"
msg["From"] = "[email protected]"
msg["To"] = "[email protected]"

with smtplib.SMTP("smtp-out.mailglyph.com", 587) as server:
    server.starttls()
    server.login("mailglyph", "YOUR_PROJECT_SECRET_KEY")
    server.send_message(msg)

Example (Laravel)

Set your mailer to SMTP in .env:
MAIL_MAILER=smtp
MAIL_HOST=smtp-out.mailglyph.com
MAIL_PORT=587
MAIL_USERNAME=mailglyph
MAIL_PASSWORD=YOUR_PROJECT_SECRET_KEY
MAIL_ENCRYPTION=tls
[email protected]
MAIL_FROM_NAME="Acme"
Send a test email:
use Illuminate\Support\Facades\Mail;

Route::get('/mailglyph-test', function () {
    Mail::raw('Hello from MailGlyph SMTP', function ($message) {
        $message->to('[email protected]')
            ->subject('Test via MailGlyph SMTP');
    });

    return 'Email sent';
});

Troubleshooting

  • Invalid username: use mailglyph as username.
  • Invalid API key: use your project secret key (not a public key).
  • Sender domain is not verified or not associated with your account: verify the sender domain in your current project.
  • TLS connection issues on port 465: use port 587 with STARTTLS.