改名
This commit is contained in:
@@ -90,15 +90,16 @@ abstract class Callback extends Application
|
|||||||
private function createEmail()
|
private function createEmail()
|
||||||
{
|
{
|
||||||
$mail = new PHPMailer(true);
|
$mail = new PHPMailer(true);
|
||||||
$mail->SMTPDebug = SMTP::DEBUG_SERVER; // Enable verbose debug output
|
$mail->SMTPDebug = SMTP::DEBUG_SERVER; // Enable verbose debug output
|
||||||
$mail->isSMTP(); // Send using SMTP
|
$mail->isSMTP(); // Send using SMTP
|
||||||
$mail->Host = Config::get('email.host'); // Set the SMTP server to send through
|
$mail->Host = Config::get('email.host'); // Set the SMTP server to send through
|
||||||
$mail->SMTPAuth = true; // Enable SMTP authentication
|
$mail->SMTPAuth = true; // Enable SMTP authentication
|
||||||
$mail->CharSet = "GBK"; // Enable SMTP authentication
|
$mail->Debugoutput = false; // Enable SMTP authentication
|
||||||
$mail->Username = Config::get('email.username'); // SMTP username
|
$mail->CharSet = "UTF8"; // Enable SMTP authentication
|
||||||
$mail->Password = Config::get('email.password'); // SMTP password
|
$mail->Username = Config::get('email.username'); // SMTP username
|
||||||
$mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged
|
$mail->Password = Config::get('email.password'); // SMTP password
|
||||||
$mail->Port = Config::get('email.port'); // TCP port to connect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above
|
$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'));
|
$mail->setFrom(Config::get('email.send.address'), Config::get('email.send.nickname'));
|
||||||
return $mail;
|
return $mail;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user