Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pulkitjalan/contact-form-backend
Simple contact form backend
https://github.com/pulkitjalan/contact-form-backend
Last synced: 3 months ago
JSON representation
Simple contact form backend
- Host: GitHub
- URL: https://github.com/pulkitjalan/contact-form-backend
- Owner: pulkitjalan
- License: mit
- Created: 2015-07-25T06:13:07.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T08:22:48.000Z (3 months ago)
- Last Synced: 2024-10-29T09:37:54.100Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 492 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - pulkitjalan/contact-form-backend - Simple contact form backend (others)
README
Contact Form Backend
===================
> Simple contact form smtp backend```html
Name:
Email:
Message:
Files:
Submit```
Once configured, it will send the contact form submission to the configured email. A reply to address will automatically be added as the `email` fields value. Files can also be attached using a `files` for `files[]` field. Don't forget to update `upload_max_filesize` and `post_max_size` if you wish to use file uploads.
## Requirements
* PHP >= 8.3
* Composer## Installation
Clone repo, point webroot to the `public` directory and run `composer install`.
## Configuration
Copy the example config file `config.php.example` to `config.php` and fill in the required fields (`server`, `port`, `username` and `password`). All other fields are optional as they have some predefined defaults. The `to` field needs to be set in either the config or in the form post.