What you'll have at the end
A configured email alert channel in NightOwl that sends through SendGrid (100/day during the trial) New and reopened issues (exceptions and performance issues), resolved and ignored issues, and agent health alerts land in your inbox.
Why SendGrid works for NightOwl
Three properties make SendGrid a credible choice, even without a permanent free plan:
- 100 emails/day on the 60-day trial: enough for most Laravel alert volumes since NightOwl groups exceptions by fingerprint (one
issue.newalert per new fingerprint, not per occurrence). - A widely known provider: when a compliance review or client contract asks "what's your transactional email provider?", SendGrid is a name most reviewers already know.
- Mature deliverability tooling: Activity Feed, suppression lists, bounce handling, and event webhooks all work on the trial.
- Shared IP pools can hurt deliverability. Trial mail goes out from IPs shared with other SendGrid accounts, and some corporate Outlook and Google Workspace inboxes filter it. Domain authentication helps. SendGrid's Activity Feed shows "Delivered", "Bounced" or "Deferred" per recipient, so you can see whether a missing alert stopped at SendGrid or at the inbox.
- 100/day cap is tight, and the trial ends after 60 days. A noisy app can hit the cap quickly. Past it, SendGrid rejects further sends, and NightOwl doesn't retry a rejected send, so those alerts are lost. After the trial, you need a paid plan to keep sending.
- The
apikeyusername catches people out. If you use your account email as the username (the obvious choice), auth fails. Use the literal stringapikey.
Step 1. Sign up for a SendGrid trial
Head to sendgrid.com/free and create an account. The 60-day trial (100/day) doesn't require a credit card. SendGrid's onboarding asks for company details. Answer honestly; their anti-abuse heuristics tune on the responses, and accounts that look like throwaways sometimes get held for manual review.
Step 2. Verify a sender
In the SendGrid dashboard, go to Settings → Sender Authentication. You have two options:
- Single Sender Verification: fastest. Enter the email address you want NightOwl alerts to come from, click the link in the validation email. Done in a minute.
- Domain Authentication: better. Add CNAME records to your DNS to authenticate the whole domain. Unlocks branded sending and significantly better deliverability. 5 minutes plus DNS propagation.
Start with Single Sender if you just want a working test alert. Plan to do Domain Authentication before going to production. SendGrid's deliverability gap between unauthenticated and authenticated domains is meaningful.
Step 3. Create an API key with Mail Send permission
Go to Settings → API Keys → Create API Key. Name it "NightOwl". For permissions, pick Full Access (simplest) or Restricted Access with Mail Send explicitly enabled (more secure).
The key starts with SG. and SendGrid shows it only once, so copy it now. If you lose it, generate another and revoke the old one.
Step 4. Open the NightOwl email channel form
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).
Step 5. Fill in SendGrid's SMTP settings
Plug these values into the NightOwl email channel form:
| Field | Value |
|---|---|
| Channel Name | On-call Email |
| Host | smtp.sendgrid.net |
| Port | 587 |
| Encryption | TLS |
| Username | apikey |
| Password | <SG.... API key from Step 3> |
| From Address | <the verified sender from Step 2> |
| From Name | NightOwl Alerts |
| To Addresses | <one or more team members> |
The Username is the literal string apikey, not your email or account name. This is SendGrid's convention; the API key is what authenticates.
The From Address must be a verified sender (or any address on an authenticated domain). Otherwise SendGrid rejects the message with SMTP 550. 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 6. Pick events, create the channel, then test
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 solo triage, leave them all on. For team triage, unticking Resolved issues and Ignored issues avoids duplicate notifications. With SendGrid's tight 100/day cap, leaving lifecycle events off is also a way to conserve quota for what matters most.
Click Create Channel. 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. Cross-check SendGrid's Activity → Activity Feed: every send shows there with "Processed → Delivered → (Open)" timestamps.
Send Test goes out through NightOwl's servers. New and reopened issue 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 SendGrid rejects a send, the error shows in the command output (or in the error Send Test shows), and NightOwl doesn't retry it.
When to upgrade to SendGrid Essentials
The trial ends after 60 days, and you need a paid plan to keep sending after that. Two signals to upgrade sooner:
- You hit 100/day during a real incident: Essentials at $19.95/mo lifts to 50,000/month with no daily cap.
- Deliverability to enterprise mailboxes is uneven: the Pro plan adds a dedicated IP, so your sender reputation no longer depends on other accounts.
SendGrid vs Resend vs Brevo vs Gmail
All four work as NightOwl alert channels. Quick decision matrix:
- SendGrid: best-known name for compliance reviews, with no permanent free plan (a 60-day trial at 100/day) and shared-IP deliverability on the trial.
- Resend: fast delivery, branded sender, 3,000/month. Best when you control DNS.
- Brevo: biggest free quota (300/day), no domain required to start, EU infrastructure.
- Gmail SMTP: zero-config, 500/day, but slow during incident bursts.