own3mall před 8 roky
rodič
revize
eb7dc2ccbe
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      includes/functions.php

+ 2 - 1
includes/functions.php

@@ -24,7 +24,7 @@
  
  
 use PHPMailer\PHPMailer\PHPMailer;
 use PHPMailer\PHPMailer\PHPMailer;
 use PHPMailer\PHPMailer\Exception;
 use PHPMailer\PHPMailer\Exception;
-
+use PHPMailer\PHPMailer\SMTP;
 #functions go here
 #functions go here
 
 
 //read_expire() converts a time stamp to a human readable form
 //read_expire() converts a time stamp to a human readable form
@@ -287,6 +287,7 @@ function mymail($email_address, $subject, $message, $panel_settings, $user_to_pa
 	// PHP Mailer
 	// PHP Mailer
 	require_once("PHPMailer/Exception.php");
 	require_once("PHPMailer/Exception.php");
 	require_once("PHPMailer/PHPMailer.php");
 	require_once("PHPMailer/PHPMailer.php");
+	require_once("PHPMailer/SMTP.php");
 	
 	
 	// Create the mail object using the Mail::factory method
 	// Create the mail object using the Mail::factory method
 	$mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch
 	$mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch