daypress
admin route/d-admin/options-general
doc versionv1.0.4
reading time5 min read
section group04 · Getting Started
Docs/Getting Started
/d-admin/options-general5 min readv1.0.4

Core Site Settings (General, Reading, Permalinks) & SMTP Email

Under Settings (/d-admin/options-*), every WordPress-familiar option persists directly in SQLite's options table and can be managed via the Admin UI, REST API, or daypress_update_option MCP tool.

General, Reading & Permalink screens

  • Settings → General (/d-admin/options-general): Site Title (blogname), Tagline (blogdescription), canonical Site Address (siteurl / home), administration email, IANA timezone (timezone_string, e.g. Europe/Amsterdam), date/time formats, and live SMTP test sender.
  • Settings → Reading (/d-admin/options-reading): Choose whether your homepage displays Your latest posts (show_on_front = "posts") or A static page (show_on_front = "page", pairing page_on_front for / and page_for_posts for your blog index), plus syndication feed item counts and search-engine indexing (blog_public).
  • Settings → Permalinks (/d-admin/options-permalink): Configure clean post URL structures (/%postname%/ recommended, date-based, or numeric) and category/tag base prefixes.
http://localhost:8090/d-admin/options-general — General Settings & SMTP Test
Daypress General Settings screen showing Site Title, Tagline, Site Address URL, Timezone, Date Format, and SMTP configuration
Settings -> General persists site identity, canonical URLs, timezone, and outbound email checks directly to SQLite.

Updating settings programmatically via MCP or REST

json (mcp)
// MCP tool: daypress_update_option (update one option at a time)
{"name": "blogname", "value": "Atelier Meridian"}
{"name": "show_on_front", "value": "page"}
{"name": "page_on_front", "value": "2"}
{"name": "timezone_string", "value": "Europe/Amsterdam"}

Configuring outbound SMTP email (FormStudio, Newsletters & Resets)

Daypress embeds the native Rust lettre SMTP client supporting implicit TLS (port 465), STARTTLS (port 587), and local unencrypted relays (e.g., Mailpit on port 1025) for password resets, FormStudio alerts, and newsletter campaigns:

bash
# Example: Resend / Postmark / AWS SES / Fastmail via STARTTLS
export DAYPRESS_SMTP_HOST="smtp.resend.com"
export DAYPRESS_SMTP_PORT="587"
export DAYPRESS_SMTP_SECURITY="starttls"   # starttls | tls | none
export DAYPRESS_SMTP_USER="resend"
export DAYPRESS_SMTP_PASSWORD="re_your_api_key_here"
export DAYPRESS_SMTP_FROM="notifications@yourdomain.com"
export DAYPRESS_SMTP_FROM_NAME="Atelier Meridian"

./daypress --port 8090 --db data/daypress.sqlite
Verify Delivery: After restarting with DAYPRESS_SMTP_* set, open Settings → General and click Send Test Email to verify TLS negotiation and sender alignment before launching forms or newsletters.