Skip to content

Commit

Permalink
增加加密 SMTP 配置
Browse files Browse the repository at this point in the history
  • Loading branch information
fengkaijia committed Jun 2, 2019
1 parent 7f2ca72 commit 083b849
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/config/email.php
Expand Up @@ -18,6 +18,7 @@
| smtp_pass No Default None SMTP Password. | smtp_pass No Default None SMTP Password.
| smtp_port 25 None SMTP Port. | smtp_port 25 None SMTP Port.
| smtp_timeout 5 None SMTP Timeout (in seconds). | smtp_timeout 5 None SMTP Timeout (in seconds).
| smtp_crypto No Default tls or ssl SMTP Encryption
| wordwrap TRUE TRUE or FALSE (boolean) Enable word-wrap. | wordwrap TRUE TRUE or FALSE (boolean) Enable word-wrap.
| wrapchars 76 Character count to wrap at. | wrapchars 76 Character count to wrap at.
| mailtype text text or html Type of mail. If you send HTML email you must send it as a complete web page. Make sure you don't have any relative links or relative image paths otherwise they will not work. | mailtype text text or html Type of mail. If you send HTML email you must send it as a complete web page. Make sure you don't have any relative links or relative image paths otherwise they will not work.
Expand All @@ -39,6 +40,7 @@
$config['smtp_user'] = IP_INSTANCE_SMTP_USER; $config['smtp_user'] = IP_INSTANCE_SMTP_USER;
$config['smtp_pass'] = IP_INSTANCE_SMTP_PASS; $config['smtp_pass'] = IP_INSTANCE_SMTP_PASS;
$config['smtp_port'] = IP_INSTANCE_SMTP_PORT; $config['smtp_port'] = IP_INSTANCE_SMTP_PORT;
$config['smtp_crypto'] = IP_INSTANCE_SMTP_SSL;
} }


$config['wordwrap'] = FALSE; $config['wordwrap'] = FALSE;
Expand Down
5 changes: 5 additions & 0 deletions config.example.php
Expand Up @@ -94,6 +94,11 @@
*/ */
define('IP_SMTP_PORT', ''); define('IP_SMTP_PORT', '');


/**
* SMTP加密模式(tls、ssl,空为不加密)
*/
define('IP_SMTP_SSL', '');

/** /**
* 反向代理IP列表 * 反向代理IP列表
*/ */
Expand Down
1 change: 1 addition & 0 deletions index.php
Expand Up @@ -39,6 +39,7 @@
define('IP_INSTANCE_SMTP_USER', IP_SMTP_USER); define('IP_INSTANCE_SMTP_USER', IP_SMTP_USER);
define('IP_INSTANCE_SMTP_PASS', IP_SMTP_PASS); define('IP_INSTANCE_SMTP_PASS', IP_SMTP_PASS);
define('IP_INSTANCE_SMTP_PORT', IP_SMTP_PORT); define('IP_INSTANCE_SMTP_PORT', IP_SMTP_PORT);
define('IP_INSTANCE_SMTP_SSL', defined('IP_SMTP_SSL') ? IP_SMTP_SSL : '');
define('IP_INSTANCE_API_ACCESS_KEY', IP_DEFAULT_API_ACCESS_KEY); define('IP_INSTANCE_API_ACCESS_KEY', IP_DEFAULT_API_ACCESS_KEY);
define('IP_INSTANCE_ID', 0); define('IP_INSTANCE_ID', 0);
define('IP_INSTANCE_KEY', IP_ENCRYPTION_KEY); define('IP_INSTANCE_KEY', IP_ENCRYPTION_KEY);
Expand Down

0 comments on commit 083b849

Please sign in to comment.