MantisBT:我的 Gmail 中未发送验证消息
MantisBT: Verification Message was not sent in my gmail
网络服务器:本地主机 (WAMP)
注册时显示错误:
SYSTEM WARNING: 'stream_socket_enable_crypto() [streams.crypto]: this
stream does not support SSL/crypto' in
'C:\wamp\www\bugtracker\library\phpmailer\class.smtp.php' line 249
CONFIG_INC.php
中的代码
<?php
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'bugtracker';
$g_db_username = 'root';
$g_db_password = '';
$g_allow_signup = ON; //allows the users to sign up for a new account
$g_enable_email_notification = ON; //enables the email messages
$g_phpMailer_method = PHPMAILER_METHOD_SMTP; // this is most important
$g_smtp_host = 'smtp.gmail.com';
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 587;
$g_smtp_username = 'myemail@gmail.com'; //replace it with your gmail address
$g_smtp_password = 'mypassword'; //replace it with your gmail password
$g_administrator_email = 'adminaccount@example.com'; //this will be your administrator email address
我也试过改变:
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 465;
我需要补充什么?
您需要执行以下操作:
- 点击 WAMP 然后
- Apache >> Apache 模块 >>ssl_module
- PHP >> Php 扩展名 >> php_openssl
干得好。谢谢
网络服务器:本地主机 (WAMP)
注册时显示错误:
SYSTEM WARNING: 'stream_socket_enable_crypto() [streams.crypto]: this stream does not support SSL/crypto' in 'C:\wamp\www\bugtracker\library\phpmailer\class.smtp.php' line 249
CONFIG_INC.php
中的代码<?php
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'bugtracker';
$g_db_username = 'root';
$g_db_password = '';
$g_allow_signup = ON; //allows the users to sign up for a new account
$g_enable_email_notification = ON; //enables the email messages
$g_phpMailer_method = PHPMAILER_METHOD_SMTP; // this is most important
$g_smtp_host = 'smtp.gmail.com';
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 587;
$g_smtp_username = 'myemail@gmail.com'; //replace it with your gmail address
$g_smtp_password = 'mypassword'; //replace it with your gmail password
$g_administrator_email = 'adminaccount@example.com'; //this will be your administrator email address
我也试过改变:
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 465;
我需要补充什么?
您需要执行以下操作:
- 点击 WAMP 然后
- Apache >> Apache 模块 >>ssl_module
- PHP >> Php 扩展名 >> php_openssl
干得好。谢谢