User mailouts
The user mailout page lets an administrator send one service message to Tools users from the user-management area.
Outgoing mail now uses the configured support sender address (SUPPORT_EMAIL, support@tornevall.net by default) instead of relying only on the generic framework default sender.
Access
- Open Users in the Tools admin area.
- Select User mailout.
- Admin users can now also open the same tool directly from the main dashboard and from the administrative section on the public Services page after login.
- The page is restricted to administrators.
Recipient scopes
The form can target:
- all users that have an email address
- users with verified email addresses
- users with OpenAI/SocialGPT access
- administrators only
Each scope shows a live recipient count before sending.
Safe sending workflow
- Write the subject and message body, or use AI helper draft to generate a first version faster.
- Use Preview to review the rendered content.
- Use Dry run to check how many users would receive the message without sending anything.
- Use Send test to me only to send one real test mail back to yourself first.
- For a real send, type
SEND TO USERS in the confirmation field and then choose Send for real.
The confirmation phrase is required to reduce accidental broadcasts. The message is sent as both plain text and simple HTML, with line breaks preserved.
Real broadcasts and test sends are now queued in the background on the dedicated user-mailout queue, so the browser can return quickly instead of waiting for the whole mail run to finish inline.
The page itself is now laid out more like a dedicated send workspace:
- the composer stays in one main panel
- workflow guidance and recipient counters stay in side panels instead of being mixed into the form
- the latest dry-run/send totals and failed-recipient samples stay visible in separate summary cards
- previews are shown in their own larger review panel so the final message is easier to read before sending
AI helper draft
The mailout form now includes an AI helper draft action.
- You can describe the goal/tone for the mailout in a separate helper field.
- Tools sends that instruction together with the current recipient scope, recipient count, current subject/body hints, and the available personalization variables.
- The AI helper returns one suggested
subject and body, which are then loaded back into the form so you can edit them before previewing or sending.
- The AI helper draft action now updates the form asynchronously, so the current page stays open while the draft, helper status, and preview panel are refreshed in place.
- The AI helper is meant to speed up first drafts, not replace the normal preview / dry run / test-send safety steps.
Failure handling
If individual recipients fail, Tools logs those failures and shows the first failed addresses to the administrator after the run. Other recipients continue to be processed.
Error pages
Public Tools hosts now use a generic branded error page for browser requests. The page shows only a friendly message, HTTP status, and a short reference code, and does not expose stack traces, SQL queries, local paths, or server infrastructure details.