Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jcy2004x
ShopXO
提交
db9c14a4
ShopXO
项目概览
jcy2004x
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
db9c14a4
编写于
5月 21, 2019
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
邮件支持ssl方式
上级
97767740
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
28 addition
and
10 deletion
+28
-10
application/admin/controller/Email.php
application/admin/controller/Email.php
+3
-0
application/admin/view/default/email/index.html
application/admin/view/default/email/index.html
+8
-0
config/shopxo.sql
config/shopxo.sql
+10
-10
extend/base/Email.php
extend/base/Email.php
+7
-0
未找到文件。
application/admin/controller/Email.php
浏览文件 @
db9c14a4
...
...
@@ -53,6 +53,9 @@ class Email extends Common
$this
->
assign
(
'data'
,
ConfigService
::
ConfigList
());
$type
=
input
(
'type'
,
'email'
);
// 静态数据
$this
->
assign
(
'common_is_text_list'
,
lang
(
'common_is_text_list'
));
// 导航
$this
->
assign
(
'nav_type'
,
$type
);
if
(
$type
==
'email'
)
...
...
application/admin/view/default/email/index.html
浏览文件 @
db9c14a4
...
...
@@ -29,6 +29,14 @@
<label>
{{$data.common_email_smtp_pwd.name}}
<span
class=
"am-form-group-label-tips"
>
{{$data.common_email_smtp_pwd.describe}}
</span></label>
<input
type=
"password"
name=
"{{$data.common_email_smtp_pwd.only_tag}}"
placeholder=
"{{$data.common_email_smtp_pwd.name}}"
data-validation-message=
"{{$data.common_email_smtp_pwd.error_tips}}"
class=
"am-radius"
{{
if
!
empty
($
data
)}}
value=
"{{$data.common_email_smtp_pwd.value}}"
{{/
if
}}
/>
</div>
<div
class=
"am-form-group"
>
<label>
{{$data.common_email_is_use_ssl.name}}
</label>
<select
name=
"{{$data.common_email_is_use_ssl.only_tag}}"
class=
"am-radius chosen-select c-p"
data-validation-message=
"{{$data.common_email_is_use_ssl.error_tips}}"
required
>
{{foreach $common_is_text_list as $v}}
<option
value=
"{{$v.id}}"
{{
if
isset
($
data
['
common_email_is_use_ssl
']['
value
'])
and
$
data
['
common_email_is_use_ssl
']['
value
']
eq
$
v
['
id
']}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
{{/foreach}}
</select>
</div>
<div
class=
"am-form-group"
>
<label>
{{$data.common_email_smtp_send_name.name}}
<span
class=
"am-form-group-label-tips"
>
{{$data.common_email_smtp_send_name.describe}}
</span></label>
<input
type=
"text"
name=
"{{$data.common_email_smtp_send_name.only_tag}}"
placeholder=
"{{$data.common_email_smtp_send_name.name}}"
data-validation-message=
"{{$data.common_email_smtp_send_name.error_tips}}"
class=
"am-radius"
{{
if
!
empty
($
data
)}}
value=
"{{$data.common_email_smtp_send_name.value}}"
{{/
if
}}
/>
...
...
config/shopxo.sql
浏览文件 @
db9c14a4
此差异已折叠。
点击以展开。
extend/base/Email.php
浏览文件 @
db9c14a4
...
...
@@ -64,9 +64,16 @@ class Email
//smtp验证功能;
$this
->
obj
->
SMTPAuth
=
true
;
// 端口
$this
->
obj
->
Port
=
MyC
(
'common_email_smtp_port'
,
25
,
true
);
// SSL方式加密
if
(
MyC
(
'common_email_is_use_ssl'
,
0
,
true
)
==
1
)
{
$this
->
obj
->
SMTPSecure
=
'ssl'
;
}
// 邮箱用户名
$this
->
obj
->
Username
=
MyC
(
'common_email_smtp_name'
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录