MantisBT: проверочное сообщение не было отправлено на мой gmail

Веб-сервер: Localhost (WAMP)

Отображение ошибки при регистрации:

СИСТЕМНОЕ ПРЕДУПРЕЖДЕНИЕ: «stream_socket_enable_crypto() [streams.crypto]: этот поток не поддерживает SSL/crypto» в строке «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 = '[email protected]'; //replace it with your gmail address
$g_smtp_password = 'mypassword'; //replace it with your gmail password
$g_administrator_email = '[email protected]'; //this will be your administrator email address

Я также пытался изменить:

$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 465;

Что мне нужно добавить?


person Me Software    schedule 17.04.2015    source источник


Ответы (1)


Вам необходимо сделать следующее:

  1. Нажмите WAMP, затем
  2. Apache >> Модули Apache >> ssl_module
  3. PHP >> Расширения Php >> php_openssl

Работа отлично. Спасибо

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

person Me Software    schedule 17.04.2015