1

可能重复:
配置 MantisBT 以使用 GMail 发送电子邮件

以下是我在config_inc.php中的电子邮件 (smtp) 配置,用于在 mantis bt 中发送邮件:

# --- Email Configuration ---
$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_port = 587;
$g_smtp_username = 'demo@gmail.com';  # used with PHPMAILER_METHOD_SMTP
$g_smtp_password = 'xxxxxx';     # used with PHPMAILER_METHOD_SMTP
$g_administrator_email = 'demo@gmail.com';
$g_webmaster_email = 'demo@gmail.com';
$g_from_name = 'xpticket Bug Tracker';
$g_from_email = 'demo@gmail.com'; # the "From: " field in emails
$g_return_path_email = 'demo@gmail.com'; # the return address for bounced mail
$g_email_receive_own = "ON";
$g_email_send_using_cronjob = "ON";
$g_use_bcc = 'demo@gmail.com';
$g_smtp_connection_mode = 'ssl';
$g_default_email_on_priority = 1;
$g_default_email_on_status = 1;
# --- Attachments / File Uploads ---

但是当我试图创建用户时,它在数据库中创建用户。还以散列格式在数据库中获取密码。但它没有发送任何邮件,也没有显示任何错误。它重定向我上一页没有任何错误。重置密码时也会发生同样的情况。

任何帮助....

谢谢

4

0 回答 0