Mantis 企業郵箱配置

Mantis 企業郵箱配置

隨着項目內容越來越零散,東西越來越複雜,有必要啓用項目管理工具了,今天花了點時間把mantis裝上了,其中遇到幾個問題,記錄下來。

環境:wampServer

郵件:Google企業郵箱

安裝過程很簡單,直接將下載下來的mantis文件解壓到www目錄下面,然後訪問下,安裝即可。

今天碰到的問題是使用Google企業郵箱時出現的一個錯誤

  1. SYSTEM WARNING: 'stream_socket_enable_crypto() [streams.crypto]: this stream does not support SSL/crypto' in 'D:\wamp\www\mantisbt\library\phpmailer\class.smtp.php' line 197 

上網查了一下說是openssl的問題,想了想,應該是php的openssl擴展沒有啓用的原因,於是在桌面的右下角點擊wampserver,啓用該功能,如圖:

 

 

這樣用戶註冊的時候就可以收到Google企業郵箱發送的確認信息了。

順便說下Google企業郵箱的在mantis中的配置

拷貝config_defaults_inc.php中的內容到config_inc.php中,並做以下修改:

 

  1. /** 
  2.      * Administrator Email address 
  3.      * @global string $g_administrator_email 
  4.      */ 
  5.     $g_administrator_email  = '[email protected]'
  6.  
  7.     /** 
  8.      * Webmaster email 
  9.      * @global string $g_webmaster_email 
  10.      */ 
  11.     $g_webmaster_email      = '[email protected]'
  12.  
  13.     /** 
  14.      * the sender email, part of 'From: ' header in emails 
  15.      * @global string $g_from_email 
  16.      */ 
  17.     $g_from_email           = '[email protected]'
  18.  
  19.     /** 
  20.      * the sender name, part of 'From: ' header in emails 
  21.      * @global string $g_from_name 
  22.      */ 
  23.     $g_from_name            = 'Mantis Bug Tracker'
  24.  
  25.     /** 
  26.      * the return address for bounced mail 
  27.      * @global string $g_return_path_email 
  28.      */ 
  29.     $g_return_path_email    = '[email protected]'
  30.  
  31.     /** 
  32.      * Allow email notification. 
  33.      * Set to ON to enable email notifications, OFF to disable them. Note that 
  34.      * disabling email notifications has no effect on emails generated as part 
  35.      * of the user signup process. When set to OFF, the password reset feature 
  36.      * is disabled. Additionally, notifications of administrators updating 
  37.      * accounts are not sent to users. 
  38.      * @global int $g_enable_email_notification 
  39.      */ 
  40.     $g_enable_email_notification    = ON; 

 

  1. /** 
  2.      * select the method to mail by: 
  3.      * PHPMAILER_METHOD_MAIL - mail() 
  4.      * PHPMAILER_METHOD_SENDMAIL - sendmail 
  5.      * PHPMAILER_METHOD_SMTP - SMTP 
  6.      * @global int $g_phpMailer_method 
  7.      */ 
  8.     $g_phpMailer_method     = 2; 
  9.  
  10.     /** 
  11.      * This option allows you to use a remote SMTP host.  Must use the phpMailer script 
  12.      * One or more hosts, separated by a semicolon, can be listed. 
  13.      * You can also specify a different port for each host by using this 
  14.      * format: [hostname:port] (e.g. "smtp1.example.com:25;smtp2.example.com"). 
  15.      * Hosts will be tried in order. 
  16.      * @global string $g_smtp_host 
  17.      */ 
  18.     $g_smtp_host            = 'smtp.gmail.com'
  19.  
  20.     /** 
  21.      * These options allow you to use SMTP Authentication when you use a remote 
  22.      * SMTP host with phpMailer.  If smtp_username is not '' then the username 
  23.      * and password will be used when logging in to the SMTP server. 
  24.      * @global string $g_smtp_username 
  25.      */ 
  26.     $g_smtp_username = '[email protected]'
  27.  
  28.     /** 
  29.      * SMTP Server Authentication password 
  30.      * @global string $g_smtp_password 
  31.      */ 
  32.     $g_smtp_password = 'xxxxxx'
  33.  
  34.     /** 
  35.      * This control the connection mode to SMTP server. Can be 'ssl' or 'tls' 
  36.      * @global string $g_smtp_connection_mode 
  37.      */ 
  38.     $g_smtp_connection_mode = 'tls'
  39.  
  40.     /** 
  41.      * The smtp port to use.  The typical SMTP ports are 25 and 587.  The port to use 
  42.      * will depend on the SMTP server configuration and hence others may be used. 
  43.      * @global int $g_smtp_port 
  44.      */ 
  45.     $g_smtp_port = 587; 

至此,我們的mantis郵件提醒功能可以正常使用了

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章