Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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.