MantisBT:验证邮件未在我的Gmail中发送

  • 本文关键字:Gmail 验证 MantisBT php mantis
  • 更新时间 :
  • 英文 :


Webserver: Localhost (WAMP)

注册时显示错误:

系统警告:"stream_socket_enable_crypto() [streams.crypto]:this 流不支持 SSL/加密' in 'C:\wamp\www\bugtracker\library\phpmailer\class.smtp.php' 第 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;

我需要添加什么?

您需要执行以下操作:

  1. 然后单击 WAMP,然后
  2. Apache>> Apache 模块>>ssl_module
  3. PHP
  4. >> PHP 扩展>> php_openssl

工作很棒。谢谢

https://www.mantisbt.org/forums/viewtopic.php?f=3&t=15398&sid=fed5ee9fd9b578d093f4fb7b80085f82&start=15

相关内容

  • 没有找到相关文章

最新更新