diff --git a/http-server/Abstracts/Callback.php b/http-server/Abstracts/Callback.php index 6caf211e..92374247 100644 --- a/http-server/Abstracts/Callback.php +++ b/http-server/Abstracts/Callback.php @@ -90,15 +90,16 @@ abstract class Callback extends Application private function createEmail() { $mail = new PHPMailer(true); - $mail->SMTPDebug = SMTP::DEBUG_SERVER; // Enable verbose debug output - $mail->isSMTP(); // Send using SMTP - $mail->Host = Config::get('email.host'); // Set the SMTP server to send through - $mail->SMTPAuth = true; // Enable SMTP authentication - $mail->CharSet = "GBK"; // Enable SMTP authentication - $mail->Username = Config::get('email.username'); // SMTP username - $mail->Password = Config::get('email.password'); // SMTP password - $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged - $mail->Port = Config::get('email.port'); // TCP port to connect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above + $mail->SMTPDebug = SMTP::DEBUG_SERVER; // Enable verbose debug output + $mail->isSMTP(); // Send using SMTP + $mail->Host = Config::get('email.host'); // Set the SMTP server to send through + $mail->SMTPAuth = true; // Enable SMTP authentication + $mail->Debugoutput = false; // Enable SMTP authentication + $mail->CharSet = "UTF8"; // Enable SMTP authentication + $mail->Username = Config::get('email.username'); // SMTP username + $mail->Password = Config::get('email.password'); // SMTP password + $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged + $mail->Port = Config::get('email.port'); // TCP port to connect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above $mail->setFrom(Config::get('email.send.address'), Config::get('email.send.nickname')); return $mail; }