PAGE HIT NOTIFICATION MAILER - SETUP GUIDE
============================================

FOLDER STRUCTURE
----------------
mailproject/
  send_mail.php          <- ye file run karo (browser me open karo ya visit page pe include karo)
  PHPMailer/
    src/
      PHPMailer.php
      SMTP.php
      Exception.php

SETTINGS USED (aapki screenshot se)
------------------------------------
SMTP Host  : api.parrfectprints.com
Port       : 465 (SSL / SMTPS)
Username   : contact@api.parrfectprints.com
Password   : *Dn%_BCWq%.e&1{q
From       : contact@api.parrfectprints.com

HOW TO USE
----------
1. Poore "mailproject" folder ko apne server pe (jaise public_html/mail-test/) upload kar dein.
2. Browser me open karein:
   https://yourdomain.com/mail-test/send_mail.php
3. Agar sab sahi hua to "Email sent successfully." dikhega.
4. Agar fail hua to error message screen pe dikhega (kyunki humne
   $mail->ErrorInfo echo kiya hai) - wahi error message hume batana.

COMMON ISSUES
-------------
1. "SMTP connect() failed" 
   -> Server firewall port 465 outbound block kar raha ho sakta hai.
      Try port 587 with SMTPSecure = 'tls' (STARTTLS) instead.

2. "Could not authenticate"
   -> Username/password galat ho sakta hai, ya email account
      "Require SSL" setting off ho, cPanel me Email Accounts ->
      Manage -> check karein.

3. Email spam/junk folder me ja raha hai
   -> Domain ke SPF/DKIM records cPanel me properly configured
      hone chahiye (Email Deliverability section me check karein).

4. "mail() function failed" (agar purana code use kiya)
   -> Ye is naye code me nahi hota kyunki hum ab seedha SMTP
      authentication use kar rahe hain, PHP ke built-in mail()
      function pe depend nahi karte.

SECURITY NOTE
-------------
Password is hardcoded in send_mail.php for testing purposes.
Production me isko environment variable ya .env file me rakhein,
aur is file ko public access se protect karein (.htaccess ya
web root ke bahar rakh kar).
