HFish/admin/mail.html
SanJin b97dae897a ~ 上钩列表分页优化
~ 上钩列表支持批量删除
~ 上钩列表长度展示
~ 上钩列表支持集群筛选
~ 集群页面支持删除
~ 改用 IPIP 本地库获取地理信息
~ 支持 WebHook Api 通知
~ 提供获取上钩列表 API
~ WEB,暗网蜜罐 API 移到各种服务上,抛开 Admin
~ 修复暗网蜜罐使用问题
~ 修复集群取 IP 错误问题
~ SSH 高交互支持
2019-08-25 01:00:42 +08:00

142 lines
4.1 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{template "header"}}
<script type="text/javascript" src="/static/libs/wangeditor3/wangEditor.css"></script>
<style>
.card-box {
padding: 0px;
}
.pdbox {
padding-top: 30px;
padding-left: 30px;
padding-right: 25px;
padding-bottom: 30px;
}
thead {
background: #f2f2f3;
}
.clear {
clear: both;
}
.title {
border-left: 2px solid #0097ff;
padding-left: 10px;
}
.img {
position: absolute;
right: 167px;
text-align: center;
font-weight: bold;
font-size: 20px;
top: 50px;
font-family: serif;
}
.xyimg {
width: 120px;
}
.sweet-alert {
z-index: 99999;
}
.w-e-text-container {
z-index: 999;
}
</style>
<div class="row">
<!-- Page-Title -->
<div class="col-sm-12">
<h4 class="page-title">邮件群发</h4>
</div>
<div class="col-sm-12">
<div class="card-box pdbox">
<div class="img">
<img src="/static/images/xy.png" class="xyimg">
<p>人不努力和咸鱼有什么区别</p>
</div>
<div class="col-md-6">
<h4 class="header-title m-t-0 m-b-30 title">基本信息</h4>
<div class="form-group row">
<label for="taskName" class="col-sm-3 form-control-label"><span class="text-danger">*</span>
邮件标题</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="title" placeholder="请输入邮件标题">
</div>
</div>
<div class="form-group row">
<label for="taskExplain" class="col-sm-3 form-control-label"><span class="text-danger">*</span>
发件人</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="from" placeholder="请输入发件人">
</div>
</div>
<div class="form-group row">
<label for="taskExplain" class="col-sm-3 form-control-label"><span class="text-danger">*</span>
收件人</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="emails"
placeholder="请输入收件人 例:xxx@gmail.com,xxx@outlook.com">
</div>
</div>
<hr>
<h4 class="header-title m-t-0 m-b-30 title">邮件模板</h4>
</div>
<div class="clear"></div>
<div id="editorx">
<p>请在此处输入发送的邮件内容</p>
</div>
<button type="button" class="btn btn-primary waves-effect waves-light"
style="width: 100%;margin-top: 20px;" onclick="sendMailToUsers()">发送邮件
</button>
<div class="clear"></div>
</div>
</div>
</div>
{{template "footer" }}
<script type="text/javascript" src="/static/libs/wangeditor3/wangEditor.js"></script>
<script>
var E = window.wangEditor;
var editorx = new E('#editorx');
editorx.create();
var sendMailToUsers = function () {
var title = $("#title").val();
var from = $("#from").val();
var emails = $("#emails").val();
var content = editorx.txt.html();
$.ajax({
type: "POST",
url: "/post/mail/sendEmail",
dataType: "json",
data: {
"title": title,
"from": from,
"emails": emails,
"content": content
},
success: function (e) {
if (e.code == 200) {
swal("success", "发送成功!", "success");
} else {
swal("发送失败", e.msg, 'error');
}
},
error: function (e) {
swal("发送失败", "请 Github 提交 Issues", 'error');
}
})
}
</script>