Lecteur Markdown
MAILFORM_DOCUMENTATION_EN
Feature: Mailform #
Contact form with mathematical CAPTCHA, email validation, RFC 2822 encoding (quoted-printable) and configurable multi-recipient support via JSON.
---
Installation and Configuration #
Via FTP: Upload the `mailform/` directory into `/plugins/`.
Via package manager: Select `mailform` from the available plugins list.
Paths:
- Main plugin: `/plugins/mailform/mailform.php`
- Configuration: `/plugins/mailform/conf/mailform.conf.inc.php`
- CSS: `/plugins/mailform/css/mailform.css`
- Locales: `/plugins/mailform/locale/`
Recipient configuration: in `$cfg[11]` (JSON), format:
[
{"name": "Support", "email": "support@example.com"},
{"name": "Sales", "email": "sales@example.com"}
]
---
Usage #
Form #
- Name field
- Email field (format validation)
- Recipient selector (if multiple configured)
- Message
- Mathematical CAPTCHA (randomly generated addition or subtraction)
Security #
- Sender IP address validation
- Censored word detection in the message
- Quoted-printable encoding for RFC 2822 compliance
- Full UTF-8 support with automatic line wrapping
Pre-fill #
If the user is logged in, their name and email are pre-filled from the session.
---
Hooks and Entry Points #
?obj=mailform.php — Form display
Submission via POST to the same URL.
---
Dependencies #
- PHP `mail()` function — email sending
- `$cfg[11]` — recipient list (JSON in the main configuration)
- `Beamreactor\Sanitizer\Parser`