craftcms/contact-form breaking changes
craftcms/contact-form 4.0.0 (November 12, 2026) is its newest release with breaking changes, 13 of them. The first: craftcms/contact-form 4.0.0 requires PHP 8.5 or later. Every breaking API change we have recorded in craftcms/contact-form on Packagist: 13 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.0.0, released November 12, 2026. MIT license. Source repository
Its 4.0.0 release requires PHP 8.5 or later. PHP end of life dates.
craftcms/contact-form 4.0.0 breaking changes
- Removed
Contact Form now requires Craft CMS 6.0 or later. Sites on older Craft versions must upgrade Craft before updating this package. github.com - Removed
craft\contactform\*
All classes in the craft\contactform namespace have been removed. Code that references them must move to the new CraftCms\ContactForm classes. github.com - Removed
craft\contactform\controllers\SendController
craft\contactform\controllers\SendController was removed in craftcms/contact-form 4.0.0 packagist.org - Removed
craft\contactform\events\SendEvent
The SendEvent class was removed along with the Mailer send events. Use the CraftCms\ContactForm\Events listeners instead. packagist.org - Removed
craft\contactform\Mailer
The Mailer class was eliminated. The message is now built directly in the controller. packagist.org - Removed
craft\contactform\Mailer.EVENT_AFTER_SEND
The EVENT_AFTER_SEND event was removed. Listen for CraftCms\ContactForm\Events\MessageSent instead. github.com - Removed
craft\contactform\Mailer.EVENT_BEFORE_SEND
The EVENT_BEFORE_SEND event was removed. Listen for CraftCms\ContactForm\Events\MessageSending instead, setting isSpam or isValid to prevent sending. github.com - Removed
craft\contactform\models\Settings
craft\contactform\models\Settings was removed in craftcms/contact-form 4.0.0 packagist.org - Removed
craft\contactform\models\Submission
The Submission model was removed in favor of a ruleset that validates the plain request data. packagist.org - Removed
craft\contactform\Plugin
craft\contactform\Plugin was removed in craftcms/contact-form 4.0.0 packagist.org - Behavior changed
Suppressed notifications and mail driver failures are now consolidated into a single error state. Spam submissions still appear to succeed but are logged instead of sent. github.com - Behavior changed
Notifications are now sent to all configured recipients at once instead of one message per recipient. Code that expects a message per recipient must change. github.com - Behavior changed
allowedMessageFields
allowedMessageFields now rejects unlisted message sub-fields with a validation error, for both lists of names and maps of rules. Only message[body] is always allowed. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.