vwochnik / php-mail

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP-Mail

Small self-hosted PHP contact form endpoint as a drop-in for static websites. It supports DNSBL and rate limitiing.

Install

Requires PHP >= 7.3

  1. Clone this repository
git clone https://github.com/vwochnik/php-mail.git
  1. CD into the directory
cd php-mail
  1. Run composer
composer install
  1. Copy example.config.php to config.php and insert SMTP configuration there.

  2. Upload to your webserver such that public is inside document root.

Usage

POST /mail/
Content-Type: application/json

{
  "name": "Example",
  "email": "example@example.com",
  "subject": "Test",
  "message": "Hello World!"
}

License

MIT

About

License:Other


Languages

Language:PHP 81.4%Language:Smarty 18.6%