davidyell / contact-us
A basic contact us plugin
Installs: 237
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
Open Issues: 3
Type:cakephp-plugin
Requires
- composer/installers: ~1.0
This package is auto-updated.
Last update: 2024-01-13 02:16:30 UTC
README
#CakePHP-ContactUs
A basic implementation of a contact us form.
##Requirements
- CakePHP v2.x
- CakeDC/Recaptcha component
##Installation
- Unzip, clone or submodule the plugin into
app/Plugin/ContactUs
- Load the plugin enabling it's routes to allow
/contact-us
as the url instead of/contact_us/contacts/message
.CakePlugin::load('ContactUs', array('routes'=>true));
- In your bootstrap file, define an email address you want your messages to be sent from. Do this like so :
Configure::write('ContactUs.email', 'from@example.com');
replacingfrom@example.com
with the email address of your choice. - If you wish to use an email config from your email.php file, you can tell the plugin to use it by adding this to your bootstrap
Configure::write('ContactUs.emailConfig', 'smtp')
wheresmtp
is the email config setting found in your email.php file. You can supply a differentfrom email
,subject
and many other parts of the email sent by the plugin using this feature. ( for more info, please visit http://book.cakephp.org/2.0/en/core-utility-libraries/email.html#basic-usage )