SMTP Configuration & Self-Service Recovery
Standalone Qwiki includes a zero-dependency pure PHP socket SMTP client (lib/Core/Mailer.php) so portals can dispatch self-service password resets and form submission alerts without sendmail or external Composer libraries.
Configuring Outbound SMTP
- Open admin βΎ β βοΈ Settings β π§ Email (SMTP).
- Check Enable Custom Socket SMTP Dispatch.
- Enter your mail server settings:
- SMTP Host (e.g.,
smtp.example.com) - Port (typically
587for STARTTLS or465for SSL) - Encryption:
TLS / STARTTLS(tls),SSL (Port 465)(ssl), orNone (Plain)(none) - SMTP Username & SMTP Password (once saved, leaving the password blank on future edits retains the stored password)
- Sender Email & Sender Name
- SMTP Host (e.g.,
- Click π¨ Test Connection & Send Test Email to verify handshake, authentication, and delivery immediately.
- Click Save Settings.
Note
If custom socket SMTP dispatch is left disabled, Qwiki falls back to PHP's built-in mail() function.
How Self-Service Password Reset Works
When a user clicks Forgot Password? in the login dialog and enters their username or verified email:
- Qwiki generates a stateless HMAC-SHA256 signed tokenβzero temporary reset files are written to disk.
- Because the signature incorporates the user's current password hash, changing the password automatically invalidates the token so reset links cannot be replayed.
- If SMTP is unavailable on an air-gapped server, admins can instead generate a 24-hour offline reset link directly inside π₯ Users.