What you'll have at the end
A configured email alert channel in NightOwl that sends through your Gmail account. New and reopened issues (exceptions and performance issues), resolved and ignored issues, and agent health alerts land in your inbox without you running an SMTP server, paying for Postmark, or verifying a domain.
Why Gmail SMTP works for NightOwl alerts
Three properties make Gmail a clean fit for low-volume alert delivery:
- Free. Up to 500 outbound emails per 24 hours on free Gmail; 2,000 on Workspace. Alert volume is usually far below that.
- No domain verification. You authenticate as yourself, send from yourself. No SPF/DKIM setup, no warmup period, no postmaster questions.
- Standard SMTP. Plain port 587 + TLS, with no provider-specific SDK. Some hosts block outbound port 587 (DigitalOcean does), and the agent sends new-issue alerts from your own server, so check that host allows it.
- Gmail's mail queue can delay alerts during incidents. Gmail SMTP accepts your message immediately, but Google queues outbound delivery on its side. Most alerts arrive within seconds; during bursts (often exactly when you need alerts) Gmail can rate-limit or defer them. This is Gmail's queue, not NightOwl. The agent hands the alert to Gmail as soon as it records the issue. For faster delivery, use Postmark or SendGrid instead. Postmark's free tier covers 100 emails a month; SendGrid only offers a 60-day trial at 100/day.
- 500 emails/day cap on free Gmail. Sustained high alert volume hits the wall. In practice, NightOwl groups exceptions by fingerprint and only fires a new-issue alert once per new fingerprint, so volume stays well under 500/day during normal incidents, but the cap exists.
Step 1. Enable 2-Step Verification
Gmail App Passwords require 2-Step Verification on the account. If you don't have it on:
- Visit myaccount.google.com/security
- Click 2-Step Verification
- Add a phone number or hardware key, follow the prompts
Takes about 60 seconds. Skip this and the App Passwords page won't even be accessible.
Step 2. Generate a 16-character App Password
Go to myaccount.google.com/apppasswords. Enter a label (e.g. "NightOwl") and click Create. Google shows a 16-character password in groups of four, like abcd efgh ijkl mnop.
Copy it without the spaces. NightOwl (and most SMTP clients) expect the 16 characters concatenated. This is shown only once; if you lose it, generate a new one.
Step 3. Open the email channel form in NightOwl
Sign in to the NightOwl dashboard. Pick your application, then go to Settings → Alerts. In the Email section, click Configure SMTP (or Add another if you already have an email channel set up).
Step 4. Fill in Gmail's SMTP settings
Plug these values into the NightOwl email channel form:
| Field | Value |
|---|---|
| Channel Name | On-call Email |
| Host | smtp.gmail.com |
| Port | 587 |
| Encryption | TLS |
| Username | you@gmail.com |
| Password | <App Password from Step 2, no spaces> |
| From Address | you@gmail.com |
| From Name | NightOwl Alerts |
| To Addresses | <one or more team members> |
From Address should equal Username, or be a "Send mail as" alias you've verified in Gmail. Otherwise Gmail rewrites the From to your Gmail address instead of rejecting the message. To Addresses is a picker of your team's members, so anyone who should get alerts needs to be on the app's team first.
Step 5. Pick alert events and create the channel
Below the recipients, Notify on lists six events. All six are ticked by default, and you can untick any of them:
- New issues: a new exception fingerprint, or a new performance issue (a record crossing its duration threshold)
- Reopened issues: a resolved issue fires again
- Resolved issues: someone resolves an issue
- Ignored issues: someone ignores an issue
- Agent health alerts: the agent reports a degraded state
- Agent health recovered: the agent reports healthy again
For a solo dev, leave them all on. For a team where one person triages, unticking Resolved issues and Ignored issues avoids inbox noise when colleagues triage. Because alerts only fire on issue lifecycle changes (not on every exception occurrence), volume stays comfortably under Gmail's 500/day cap during normal incidents.
Then click Create Channel.
Step 6. Send a test alert
Send Test isn't on the create form. Once the channel is saved, click the pencil icon next to it (Edit email channel), then click Send Test. NightOwl sends a test email through Gmail. Check your inbox; under normal conditions it lands within seconds.
Send Test goes out through NightOwl's servers. New and reopened issue alerts, and agent health alerts, are sent by the agent on your own server, so also run php artisan nightowl:test-alert there to test the path those alerts take.
If nothing arrives in 60 seconds:
- Read the error Send Test shows (or the
nightowl:test-alertoutput). Gmail returns a clear error if auth failed - Confirm the App Password has no spaces
- If you changed your Google password since creating the App Password, generate a new one (a password change revokes every App Password)
- Check the spam folder: first deliveries from a new account/IP combination occasionally get filtered
When to graduate to a transactional provider
Gmail SMTP is good enough until it's not. Three signals to switch:
- You've hit Gmail's queue lag during a real incident: the alert arrived minutes after you already knew. Move to a transactional provider such as Postmark, Resend or Brevo.
- You're approaching the 500/day cap: sustained alert volume past that means either upgrade to Workspace (2,000/day) or switch to a provider that doesn't cap.
- You want branded sender addresses: alerts from
alerts@yourdomain.cominstead of your personal Gmail. Postmark / SendGrid / Resend all handle this with domain authentication; free Gmail only offers a "Send mail as" alias.
Postmark's free tier is 100 emails/month; SendGrid has no permanent free plan, only a 60-day trial at 100/day; Resend's is 3,000/month. Any of them swaps in cleanly: same NightOwl email channel form, just different host/credentials.