下载并安装EasyPHP-Devserver
更改eds-binaries\httpserver\apache2425vc11x86x170928133524\conf目录下面的httpd.ini文件。以便发布mantis使其在其他机器上可正常访问。
Listen 127.0.0.1:8080 # Listen 192.168.142.37:8080 #
<VirtualHost 192.168.142.37> DocumentRoot "C:/Program Files/EasyPHP-Devserver-17/eds-www/mantisbt-2.6.0" ServerName mantisserver <Directory "C:/Program Files/EasyPHP-Devserver-17/eds-www/mantisbt-2.6.0"> Options FollowSymLinks Indexes ExecCGI AllowOverride All Order deny,allow Allow from 127.0.0.1 Allow from all Require all granted </Directory> </VirtualHost>
更改eds-binaries\php\php5630vc11x86x170928133524下面的PHP.ini,更改 \eds-www\mantisbt-2.6.0\config下面的config_inc.php,这样邮件功能可用。
[mail function] ; For Win32 only. SMTP = smtp_port = 25 sendmail_from =
$g_phpMailer_path ='C:\Program Files\EasyPHP-Devserver-17\eds-www\mantisbt-2.6.0\vendor\phpmailer\phpmailer'; $g_use_phpMailer = ON; $g_smtp_host=''; //设置邮箱的发送地址 $g_smtp_username=''; //设置邮箱的用户名 $g_smtp_password=''; //设置邮箱的密码 $g_phpMailer_method = PHPMAILER_METHOD_SMTP; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL $g_webmaster_email = ''; $g_administrator_email = ''; $g_from_name = 'Mantis Bug Tracker'; $g_from_email = ''; # the "From: " field in emails $g_return_path_email = ''; # the return address for bounced mail $g_email_receive_own = OFF; $g_email_send_using_cronjob = OFF;
大功告成。
转载于:https://blog.51cto.com/kingfisher/1973118