WAMP + MantisBT Email Configruation

follow these steps:

1. get the WAMP Stack installer and install it.( set the mysql settings during the installation)

2. get the latest MantisBT zip, extra it into the 'apps' folder ,and copy the conf whoes instuctions could be found in the WAMP page.(how to config yourself apps)

3. run the install.php to install mantisbt.

4. if everything is ok, the most important steps is coming. bcz, the email is still not configured. there would not be any email notification if you make new user or reset passwords except these following steps is done:

1) config the smtp in PHP (if use smtp protocol)

   edit the php.ini.  this file could be found in the php install root. for me, it comes with the WAMP install folder, and in its php folder,you can see the php.ini.  find the 'smtp' item ,and

  >change the smtp 'localhost' to the real smtp server.(e.g. smtp.163.com or smtp.qq.com)

 >change the smtp_port to the real smtp port(e.g. 587 for smtp.qq.com)

save it.

2> add or edit the following items to config_inc.php in mantisbt( placed in config folder)

#email conifguration

$g_smtp_host = 'smtp.qq.com'; # SMTP server

$g_smtp_username = '[email protected]'; # login user name
$g_smtp_password = '<password>';# login password
$g_use_phpMailer = ON; # PHPMailer would be used
$g_phpMailer_path = '.\core\phpmailer'; #  path of PHPMailer located.(important, do not need to change usually)
$g_phpMailer_method = 2; # PHPMailer send email by smtp
$g_webmaster_email      = '[email protected]';
$g_from_email           = '[email protected]';    # the "From: " field in emails
$g_return_path_email    = '[email protected]';    # the return address for bounced mail (!!important)
$g_from_name            = 'Mantis Bug Tracker';

save it.

3.restart apach http server in WAMP, and everything would be ok.

猜你喜欢

转载自blog.csdn.net/xylz_yang/article/details/83055801
今日推荐