- Added Craft 5 compatibility.
- Added a missing Dutch translation. (#257)
- Fixed a bug where it wasn’t possible to upload a single file with the
attachmentparam. (#254)
- Added translations for
EmailandName. (#235) - Fixed an error that occurred if
fromNamewas not specified on submissions. (#228)
- Added Craft 4 compatibility.
- Added the
allowedMessageFieldssetting, which can be used to restrict whichmessagefields are allowed to be submitted.
- Failed submissions are now passed back to the template as a
submissionvariable, instead ofmessage. - The
contact-form/sendaction now returns a 400 status on failure for Ajax requests.
- Added translations for
EmailandName. (#235)
- Fixed a bug where newlines were getting replaced with double newlines in message bodies. (#214)
- Added the
allowedMessageFieldssetting, which can be used to restrict whichmessagefields are allowed to be submitted.
- Fixed a potential PHP error.
- Custom message fields’ labels can now be translated using the
sitetranslation category. (#161)
- Craft 3.4 or later is now required.
- The success flash message is now returned in the response for AJAX calls.
craft\contactform\models\Submissionnow supportsEVENT_DEFINE_RULES. (#196)
- Added case-insensitive extension check for attachments.
- The Contact Form “To Email” setting can now be set to environment variables (e.g.
$CONTACT_TO_EMAIL). (#179) - Contact Form now requires Craft 3.1 or later.
- Contact Form now respects Craft’s allowedFileExtensions config setting.
- Contact Form now logs a
warninginstead ofinfoto the log files when an email is flagged as spam. (#163)
- Fixed an issue with Japanese Characters. (#158)
- Contact Form is now translated into Dutch. (#139)
- Fixed a bug where the submission email address was not being validated. (#145)
- Fixed a PHP error introduced in 2.2.1 that broke submissions that were using a single
messageform input.
- Fixed a bug where blank messages wouldn’t fail validation if the message was split into multiple fields.
- Contact Form is now translated into Arabic. (#125)
- Contact emails no longer list the Name field if none was provided. (#126)
- Event listeners for
craft\contactform\Mailer::EVENT_BEFORE_SENDcan now make changes tocraft\contactform\events\SendEvent::$toEmails, and they will be respected. (#112)
- Fixed a bug where single carriage returns in email message bodies were being ignored. (#118)
- Fixed a bug where HTML in email bodies wasn’t getting escaped. (#104)
- Fixed an error that occurred when submitting a contact form with an empty file attachment field. (#116)
- Loosened the Craft CMS version requirement to allow any 3.x version.
- Added German translations.
- Email message bodies now include the sender’s name and email. (#97)
- Craft 3 Beta 27 compatibility.
- Craft 3 Beta 20 compatibility.
- Fixed a bug where the
messagevariable was not available to contact form templates when the submission contained validation errors.
- Added Craft 3 compatibility.
- Added the
afterSendevent.
- The
beforeSendevent now has$submissionand$messageproperties, set to the user submission model and the compiled email message, respectively. - The
contactForm/sendMessageaction is nowcontact-form/send.
- Removed honeypot field support. (Moved to the contact-form-honeypot plugin.)
- Removed the
beforeMessageCompileevent. - Removed the
$isValidproperty from thebeforeSendevent. Use thebeforeValidateevent on theSubmissionmodel to prevent submissions from going through.
- Fixed a bug where the HTML body of an email was being escaped displaying HTML entities in the email.
- Added the ability for plugins to modify the email's plain text and HTML body via the
contactForm.beforeMessageCompileevent.
- Fixed a bug where Twig code that was entered in the email body or subject was getting parsed.
- Added the ability to access individual message fields values via
message.messageFieldswhen a validation error occurred. For example, the value of the inputmessage[Phone]can now be accessed viamessage.messageFields['Phone'].
- Custom message field values only have a single line break between them in the generated email body now, rather than two.
- Added the ability to attach multiple files to the contact email.
- Added the ability to change the flash success message via the "successFlashMessage" setting.
- Added the ability to override plugin settings via a
craft/config/contactform.phpconfig setting.
- The "prependSender" and "prependSubject" settings can now be empty strings.
- Fixed a bug where the "allowAttachments" config setting wasn't being respected.
- Added support for some Craft 2.5 features.
- Added support for passing
{fromName},{fromEmail}, and{subject}in the ‘redirect’ URL.
- Added support for multiple email addresses
- Added the ContactFormService
- Added the
contactForm.beforeSendevent, allowing third party plugins to add extra validation
- Added honeypot captcha support
- Added the ability to submit attachments
- Added the ability to submit the form over Ajax
- Added the ability to submit checkbox lists, which get compiled into comma-separated lists in the email
- Initial release