Add a simple contact-form onto a page which sends the form data to an email address.
"require": {
"siezi/phile-contact-form": "*"
}
- download this plugin into
plugins/siezi/phileContactForm
After you have installed the plugin you need to activate it. Add the following line to your /config.php
file:
$config['plugins']['siezi\\phileContactForm'] = ['active' => true];
Set the email-address the contact form is send to:
$config['plugins']['siezi\\phileContactForm']['recipient-email'] = 'contact@example.com';
Put
(contact-form: simple)
onto the page where the contact form should be inserted.
See config.php
.
Triggered when the received form data is processed.
By altering the returned success
parameter allows you to utilize the form data and perform your own action and/or suppress the default (send email).