---
title: "craftcms/contact-form 4.0.0 Breaking Changes on Packagist"
description: "What each craftcms/contact-form release removed, renamed or changed: 13 breaking changes in 1 version on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/craftcms/contact-form
last_updated: 2026-12-04
---

# 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

Latest version `4.0.0`, released November 12, 2026. MIT license. [Source repository](https://github.com/craftcms/contact-form)

Its 4.0.0 release requires [PHP 8.5](https://since.dev/calendar/php/8.5.md) or later. [PHP end of life dates](https://since.dev/calendar/php.md).

## craftcms/contact-form 4.0.0 breaking changes

craftcms/contact-form 4.0.0, released November 12, 2026: 13 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](https://github.com/craftcms/contact-form/releases/tag/4.0.0)
- **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](https://github.com/craftcms/contact-form/releases/tag/4.0.0)
- **Removed** `craft\contactform\controllers\SendController`  

craft\\contactform\\controllers\\SendController was removed in craftcms/contact-form 4.0.0 [packagist.org](https://packagist.org/packages/craftcms/contact-form#4.0.0)
- **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](https://packagist.org/packages/craftcms/contact-form#4.0.0)
- **Removed** `craft\contactform\Mailer`  

The Mailer class was eliminated. The message is now built directly in the controller. [packagist.org](https://packagist.org/packages/craftcms/contact-form#4.0.0)
- **Removed** `craft\contactform\Mailer.EVENT_AFTER_SEND`  

The EVENT_AFTER_SEND event was removed. Listen for CraftCms\\ContactForm\\Events\\MessageSent instead. [github.com](https://github.com/craftcms/contact-form/releases/tag/4.0.0)
- **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](https://github.com/craftcms/contact-form/releases/tag/4.0.0)
- **Removed** `craft\contactform\models\Settings`  

craft\\contactform\\models\\Settings was removed in craftcms/contact-form 4.0.0 [packagist.org](https://packagist.org/packages/craftcms/contact-form#4.0.0)
- **Removed** `craft\contactform\models\Submission`  

The Submission model was removed in favor of a ruleset that validates the plain request data. [packagist.org](https://packagist.org/packages/craftcms/contact-form#4.0.0)
- **Removed** `craft\contactform\Plugin`  

craft\\contactform\\Plugin was removed in craftcms/contact-form 4.0.0 [packagist.org](https://packagist.org/packages/craftcms/contact-form#4.0.0)
- **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](https://github.com/craftcms/contact-form/releases/tag/4.0.0)
- **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](https://github.com/craftcms/contact-form/releases/tag/4.0.0)
- **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](https://github.com/craftcms/contact-form/releases/tag/4.0.0)

## Related packages

- [craftcms/cms](https://since.dev/packages/packagist/craftcms/cms.md)
- [craftcms/contact-form-honeypot](https://since.dev/packages/packagist/craftcms/contact-form-honeypot.md)
- [craftcms/element-api](https://since.dev/packages/packagist/craftcms/element-api.md)
- [craftcms/html-field](https://since.dev/packages/packagist/craftcms/html-field.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
