Pancake Stack › Pancake Stack Manual
Mail from your sites
Every email your sites send lands in Pancake's Mailbox instead of real inboxes. When you're ready, send real mail through an SMTP service, and get uptime alerts on your phone.
10.1The Mailbox
Mail your sites send with PHP's mail() (which WordPress, Laravel and most PHP apps use) never leaves the Mac. It appears in the Mailbox, so you can test sign-up, order and password-reset emails safely, without spamming real people.
- Open it with ⇧⌘M, Services ▸ Mail ▸ Open Mailbox, or Mailbox in the menu bar icon. The Mail card in Services also shows how many messages were caught and the newest ones.
- Filter by Site, and switch each message between HTML, Text and Source.
- Save attachments, or Show .eml to open the raw message file.
- Delete All empties the Mailbox; right-click a message to delete just that one.
HTML mail is shown with JavaScript off and remote images blocked; links open in your browser.
10.2The SMTP mail catcher
Some apps don't use PHP's mail() but talk to a mail server: Django, Flask-Mail, Laravel set to smtp, Node apps. Pancake runs a small mail server on this Mac for them that delivers nothing: every message lands in the Mailbox too. It's on every plan and off until you switch on SMTP mail catcher in Services ▸ Mail; only this Mac can connect to it.
- It listens on
127.0.0.1:25when that port is free, so Django's default settings (localhost, port 25) are caught with no changes; otherwise 1025 or 2525. Services ▸ Mail shows the port. - Switch on SMTP apps → Mailbox for a site to give it the catcher's address:
MAIL_HOST,MAIL_PORT,MAIL_USERNAMEandMAIL_MAILER=smtp(Laravel),EMAIL_HOST,EMAIL_PORTandEMAIL_URL(Django),MAIL_SERVER(Flask-Mail) andSMTP_HOST/SMTP_PORT. They override the mail settings in a site's.env, and the Mailbox files the mail under that site. Switching it on also starts the catcher. The same switch is in the site card's Mail menu (Advanced). - Leave the catcher off if another program on your Mac needs those ports.
10.3Sending real mail
TallStack Pancake can also send a site's mail to the real recipients through an SMTP service. Everything is still captured in the Mailbox.
- Open Settings ▸ Mail. Choose your service in Fill in for…: Mailgun, Postmark, Amazon SES, SendGrid, Resend or Brevo. Pancake fills in the server, port and security.
- Enter the User name, Password / API key and a Default sender, such as
[email protected]. Click Save. - Type your address in Test address and click Send Test.
- In Services ▸ Mail, switch on Send for real for each site that should send real mail.
| Service | What to enter |
|---|---|
| Mailgun | User postmaster@your-domain and its SMTP password. |
| Postmark | The Server API token as both user and password. |
| Amazon SES | SES SMTP credentials (not your AWS access key). Change the region in the server name if needed. |
| SendGrid | User apikey and your API key. |
| Resend | User resend and your API key (TLS, port 465). |
| Brevo | Your SMTP login and key. |
Only mail captured after a site's relay was switched on is sent, never anything older than a day. A failed send is tried again after 1, 5 and 30 minutes. The password stays in your Keychain.
Your service will only deliver mail from domains you've verified with it. Set up its SPF and DKIM records first, or messages may be rejected or land in spam.
10.4Push alerts to your phone
FullStack When a site you serve from this Mac goes down, Pancake shows a macOS notification on every plan. FullStack can also send the alert to your phone.
- Open Settings ▸ Push alerts and turn on Send uptime alerts to my phone.
- Choose a Service:
- ntfy: keep the server
https://ntfy.sh(or your own), click New Topic for a random topic name, and subscribe to it in the ntfy app. On ntfy.sh anyone who knows the topic can read it, so keep the random name. - Gotify: your server's address and an application token.
- Pushover: an application API token and your user key.
- ntfy: keep the server
- Click Save, then Send Test.
Alerts are sent when a site fails two checks in a row (about ten minutes) and again when it's back. Down alerts use the service's urgent priority.