Skip to content

dogsbodytech/portal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dogsbody Contact Form

A secure PHP contact form to allow strangers to send messages and attachments safely.

Features

  • Validated HTML form with branding and CSS
  • Supports file upload (max 20MB)
  • CAPTCHA using free/libre image generation
  • Secure email via PHPMailer (SMTP with TLS)
  • Fallback: saves uploaded files to disk if mail fails

Installation

  1. Clone this repo and cd into the directory.
  2. Run composer install.
  3. Configure SMTP settings in submit.php.
  4. Ensure ../uploads/ exists and is writable by the web server.
mkdir -p ../uploads
chmod 750 ../uploads
chown www-data:www-data ../uploads
  1. Install fonts if needed for CAPTCHA:
    • arial.ttf or LiberationSans-Regular.ttf should be in the script directory.

CAPTCHA

  • Session-based
  • Expires immediately on use
  • Reloads on page refresh

Security Notes

  • Files are not scanned for malware – consider adding antivirus.
  • SMTP passwords should be moved to environment variables or config files outside webroot.
  • PHP errors are not shown to users – check logs (error_log).

Updating

  • Use composer update to update dependencies.
  • Enable GitHub Dependabot or similar for alerts on new versions.

License

MIT (or your preferred license).

About

Secure portal for messages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published