- 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
message
variable was not available to contact form templates when the submission contained validation errors.
- Added Craft 3 compatibility.
- Added the
afterSend
event.
- The
beforeSend
event now has$submission
and$message
properties, set to the user submission model and the compiled email message, respectively. - The
contactForm/sendMessage
action is nowcontact-form/send
.
- Removed honeypot field support. (Moved to the contact-form-honeypot plugin.)
- Removed the
beforeMessageCompile
event. - Removed the
$isValid
property from thebeforeSend
event. Use thebeforeValidate
event on theSubmission
model 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.beforeMessageCompile
event.
- 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.messageFields
when 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.php
config 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.beforeSend
event, 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