cakephp-plugin contact-us
A basic contact us plugin
davidyell/contact-us
A basic contact us plugin
- Friday, June 6, 2014
- by davidyell
- Repository
- 2 Watchers
- 2 Stars
- 226 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 2 Forks
- 3 Open issues
- 3 Versions
- 1 % Grown
A basic implementation of a contact us form., (*1)
Requirements
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');
replacing from@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')
where smtp
is the email config
setting found in your email.php file. You can supply a different from 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 )
dev-develop
dev-develop
A basic contact us plugin
Sources
Download
The Requires
dev-master
9999999-dev
A basic contact us plugin
Sources
Download
The Requires