我是Mantis的新手bugTracker我安装了它。现在我想为电子邮件通知配置它。 我更改了 config_inc.php 文件。
以下是代码:
<?php
$g_hostname = '192.168.1.4';
$g_db_type = 'mysql';
$g_database_name = 'mantisbt_bug';
$g_db_username = 'mantisbt_bug';
$g_db_password = 'mantisbt_bug';
$g_phpMailer_method = PHPMAILER_METHOD_SMTP; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL
$g_smtp_host = 'smtp.gmail.com'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_username = 'aditi@gmail.com'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_password = '******'; # used with PHPMAILER_METHOD_SMTP
$g_administrator_email = 'aditi@gmail.com';
$g_webmaster_email = 'aditi@gmail.com';
$g_from_email = 'aditi@gmail.com'; # the "From: " field in emails
$g_return_path_email = 'admin@example.com'; # the return address for bounced mail
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 465;
$g_enable_email_notification = ON;
$g_email_receive_own = ON;
$g_validate_email = OFF;
$g_allow_signup = ON; //allows the users to sign up for a new account
&GT;
我收到错误,如下图所示。
如何配置电子邮件以便我可以在我的帐户上收到电子邮件?
答案 0 :(得分:1)
更改
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 587;
到
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 25;
这适用于Gmail