#!/usr/bin/env bash
# Downloads the 3 PHPMailer files send.php needs, into PHPMailer/src/
# Run this once locally, then upload the PHPMailer folder beside send.php.
set -e
mkdir -p PHPMailer/src
base="https://raw.githubusercontent.com/PHPMailer/PHPMailer/master/src"
for f in PHPMailer.php SMTP.php Exception.php; do
  echo "Downloading $f ..."
  curl -fsSL "$base/$f" -o "PHPMailer/src/$f"
done
echo "Done. Files are in PHPMailer/src/"
