|
|
@@ -1,6 +1,4 @@
|
|
|
<?php
|
|
|
-// Require Composer's autoloader.
|
|
|
-require_once '../../vendor/autoload.php';
|
|
|
|
|
|
#域名设置
|
|
|
define(WWW_DOMAIN_NAME,"sg.wikipali.org");
|
|
|
@@ -9,15 +7,11 @@ define(RPC_DOMAIN_NAME,"rpc.wikipali.org");
|
|
|
电子邮件设置
|
|
|
PHPMailer
|
|
|
*/
|
|
|
-use PHPMailer\PHPMailer\PHPMailer;
|
|
|
-use PHPMailer\PHPMailer\SMTP;
|
|
|
-use PHPMailer\PHPMailer\Exception;
|
|
|
-define("Email", ["SMTPDebug"=>SMTP::DEBUG_SERVER,//Enable verbose debug output DEBUG_OFF
|
|
|
+define("Email", [
|
|
|
"Host"=>"smtp.gmail.com",//Set the SMTP server to send through
|
|
|
"SMTPAuth"=>true,//Enable SMTP authentication
|
|
|
"Username"=>'your@gmail.com',//SMTP username
|
|
|
"Password"=>'your_password',//SMTP password
|
|
|
- "SMTPSecure"=>PHPMailer::ENCRYPTION_SMTPS,//Enable implicit TLS encryption
|
|
|
"Port"=>465,//TCP port to connect to 465; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`
|
|
|
"From"=>"your@gmail.com",
|
|
|
"Sender"=>"sender"
|