config.sample.php 780 B

123456789101112131415161718192021
  1. <?php
  2. // Require Composer's autoloader.
  3. require_once '../../vendor/autoload.php';
  4. // Require Composer's autoloader.
  5. use PHPMailer\PHPMailer\PHPMailer;
  6. use PHPMailer\PHPMailer\SMTP;
  7. use PHPMailer\PHPMailer\Exception;
  8. define("Email", ["SMTPDebug"=>SMTP::DEBUG_SERVER,//Enable verbose debug output
  9. "Host"=>"smtp.gmail.com",//Set the SMTP server to send through
  10. "SMTPAuth"=>true,//Enable SMTP authentication
  11. "Username"=>'your@gmail.com',//SMTP username
  12. "Password"=>'your_password',//SMTP password
  13. "SMTPSecure"=>PHPMailer::ENCRYPTION_SMTPS,//Enable implicit TLS encryption
  14. "Port"=>465,//TCP port to connect to 465; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`
  15. "From"=>"your@gmail.com",
  16. "Sender"=>"sender"
  17. ]);
  18. ?>