wamp5下安装mantis 怎么设置发送邮件

[复制链接]
查看11 | 回复1 | 2011-9-5 08:32:07 | 显示全部楼层 |阅读模式
回复

使用道具 举报

千问 | 2011-9-5 08:32:07 | 显示全部楼层
六、Mantis中邮件配置
如果不用邮件提醒通知这些功能,则在config_inc.php中如下增加一行即可,这样的话新增的用户的密码都是空的。
$g_enable_email_notification        =OFF;//不使用邮件

使用邮件功能的话,请看以下内容:
以下代码可以在config_defaults_inc.php中找到,建议把该内容拷到config_inc.php中再进行修改。
下面以163邮箱为例进行详细的配置说明:
        /**
        *thereturnaddressforbouncedmail
        *@globalstring$g_return_path_email
        */
        $g_return_path_email        =\'[email protected]\';//这里填写你的邮箱

        /**
        *Allowemailnotification.
        *SettoONtoenableemailnotifications,OFFtodisablethem.Notethat
        *disablingemailnotificationshasnoeffectonemailsgeneratedaspart
        *oftheusersignupprocess.WhensettoOFF,thepasswordresetfeature
        *isdisabled.Additionally,notificationsofadministratorsupdating
        *accountsarenotsenttousers.
        *@globalint$g_enable_email_notification
        */
        $g_enable_email_notification        =ON;

        /**
        *selectthemethodtomailby:
        *PHPMAILER_METHOD_MAIL-mail()
        *PHPMAILER_METHOD_SENDMAIL-sendmail
        *PHPMAILER_METHOD_SMTP-SMTP
        *@globalint$g_phpMailer_method
        */
        $g_phpMailer_method                =PHPMAILER_METHOD_MAIL;

        /**
        *ThisoptionallowsyoutousearemoteSMTPhost.MustusethephpMailerscript
        *Oneormorehosts,separatedbyasemicolon,canbelisted.
        *Youcanalsospecifyadifferentportforeachhostbyusingthis
        *format:[hostname:port](e.g.\"smtp1.example.com:25;smtp2.example.com\").
        *Hostswillbetriedinorder.
        *@globalstring$g_smtp_host
        */
        $g_smtp_host                        =\'smtp.163.com\';

        /**
        *TheseoptionsallowyoutouseSMTPAuthenticationwhenyouusearemote
        *SMTPhostwithphpMailer.Ifsmtp_usernameisnot\'\'thentheusername
        *andpasswordwillbeusedwhenloggingintotheSMTPserver.
        *@globalstring$g_smtp_username
        */
        $g_smtp_username=\'yourmail\';//这里填写你的邮箱的用户名

        /**
        *SMTPServerAuthenticationpassword
        *@globalstring$g_smtp_password
        */
        $g_smtp_password=\'yourpassword\';//这里填写你的邮箱的密码

注意:为了避免邮件中的URL中出现localhost,请使用IP地址或域名登录mantis(如:<ahref=\"http://192.168.56.102/mantisbt\"target=\"_blank\">http://192.168.56.102/mantisbt</a>),而不要用<ahref=\"http://localhost/mantisbt\"target=\"_blank\">http://localhost/mantisbt</a>。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行