Advertisement
AlexWebDevelop

Untitled

Nov 4th, 2020
2,080
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3.     use PHPMailer\PHPMailer\PHPMailer;
  4.     use PHPMailer\PHPMailer\Exception;
  5.     require '/var/www/vendor/autoload.php';
  6.    
  7.     /* You don't need these if you include autoload.php'; */
  8.     /*
  9.     require '/var/www/PHPMailer/src/Exception.php';
  10.         require '/var/www/PHPMailer/src/PHPMailer.php';
  11.         require '/var/www/PHPMailer/src/SMTP.php';
  12.     */
  13.    
  14.     class Email {
  15.  
  16.             public function sendConfirm($to, $code, $username) {
  17.  
  18.             ... OTHER CODE ...             
  19.    
  20.             }
  21.     }
  22.  
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement