This repository has been archived by the owner on May 28, 2019. It is now read-only.
forked from patrickhafner/ContactForm-CakePHP-2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08d8911
commit 6ae136d
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#Contact form for CakePHP 2 | ||
|
||
## installation | ||
* clone github repository into your CakePHP Application plugin folder | ||
* add following code into your Config/email.php and configure: | ||
```php | ||
public $contactform = array( | ||
'transport' => 'Mail', | ||
'from' => array('[email protected]' => 'example.com | contact form'), | ||
'bcc' => '[email protected]', | ||
'charset' => 'utf-8', | ||
'headerCharset' => 'utf-8', | ||
); | ||
``` | ||
* if you'd like to use an existing email configuration, please change Controller/ContactformController.php: | ||
```php | ||
$email->config('YOURCONFIG_IN_EMAIL_PHP'); | ||
``` | ||
* test contact form with following url: ```http://yourapp.com/contact``` |