Skip to content
Permalink
Browse files

增加加密 SMTP 配置

  • Loading branch information...
fengkaijia committed Jun 2, 2019
1 parent 7f2ca72 commit 083b849302cb8ed5a241ecb4629f937b084fefe6
Showing with 8 additions and 0 deletions.
  1. +2 −0 application/config/email.php
  2. +5 −0 config.example.php
  3. +1 −0 index.php
@@ -18,6 +18,7 @@
| smtp_pass No Default None SMTP Password.
| smtp_port 25 None SMTP Port.
| 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.
| 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.
@@ -39,6 +40,7 @@
$config['smtp_user'] = IP_INSTANCE_SMTP_USER;
$config['smtp_pass'] = IP_INSTANCE_SMTP_PASS;
$config['smtp_port'] = IP_INSTANCE_SMTP_PORT;
$config['smtp_crypto'] = IP_INSTANCE_SMTP_SSL;
}
$config['wordwrap'] = FALSE;
@@ -94,6 +94,11 @@
*/
define('IP_SMTP_PORT', '');
/**
* SMTP加密模式(tls、ssl,空为不加密)
*/
define('IP_SMTP_SSL', '');
/**
* 反向代理IP列表
*/
@@ -39,6 +39,7 @@
define('IP_INSTANCE_SMTP_USER', IP_SMTP_USER);
define('IP_INSTANCE_SMTP_PASS', IP_SMTP_PASS);
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_ID', 0);
define('IP_INSTANCE_KEY', IP_ENCRYPTION_KEY);

0 comments on commit 083b849

Please sign in to comment.
You can’t perform that action at this time.