mirror of https://github.com/gophish/gophish
Working on send test email in sending_profiles page
parent
a2ee229848
commit
a3376a702f
|
@ -1,7 +1,7 @@
|
||||||
var profiles = []
|
var profiles = []
|
||||||
|
|
||||||
// Attempts to send a test email by POSTing to /campaigns/
|
// Attempts to send a test email by POSTing to /campaigns/
|
||||||
/*function sendTestEmail() {
|
function sendTestEmail() {
|
||||||
var test_email_request = {
|
var test_email_request = {
|
||||||
template: { name: '' },
|
template: { name: '' },
|
||||||
first_name: $("input[name=to_first_name]").val(),
|
first_name: $("input[name=to_first_name]").val(),
|
||||||
|
@ -32,7 +32,7 @@ var profiles = []
|
||||||
<i class=\"fa fa-exclamation-circle\"></i> " + data.responseJSON.message + "</div>")
|
<i class=\"fa fa-exclamation-circle\"></i> " + data.responseJSON.message + "</div>")
|
||||||
$("#sendTestModalSubmit").html(btnHtml)
|
$("#sendTestModalSubmit").html(btnHtml)
|
||||||
})
|
})
|
||||||
}*/ //disable sendTestEmail functionality on sending profile page until update handling of /util/send_test_email
|
}
|
||||||
|
|
||||||
// Save attempts to POST to /smtp/
|
// Save attempts to POST to /smtp/
|
||||||
function save(idx) {
|
function save(idx) {
|
||||||
|
|
|
@ -86,7 +86,7 @@
|
||||||
<input id="ignore_cert_errors" type="checkbox" checked>
|
<input id="ignore_cert_errors" type="checkbox" checked>
|
||||||
<label for="ignore_cert_errors">Ignore Certificate Errors <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="right" title="Ignore common certificate errors such as self-signed certs (exposes you to MiTM attacks - use carefully!)"></i></label>
|
<label for="ignore_cert_errors">Ignore Certificate Errors <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="right" title="Ignore common certificate errors such as self-signed certs (exposes you to MiTM attacks - use carefully!)"></i></label>
|
||||||
</div>
|
</div>
|
||||||
<!-- <button type="button" data-toggle="modal" data-target="#sendTestEmailModal" class="btn btn-primary"><i class="fa fa-envelope"></i> Send Test Email</button> -->
|
<button type="button" data-toggle="modal" data-target="#sendTestEmailModal" class="btn btn-primary"><i class="fa fa-envelope"></i> Send Test Email</button>
|
||||||
<!-- disable sendTestEmail functionality on sending profile page until update handling of /util/send_test_email -->
|
<!-- disable sendTestEmail functionality on sending profile page until update handling of /util/send_test_email -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -98,11 +98,11 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Send Test Email Modal -->
|
<!-- Send Test Email Modal -->
|
||||||
<!-- <div class="modal" id="sendTestEmailModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
|
<div class="modal" id="sendTestEmailModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-content"> -->
|
<div class="modal-content">
|
||||||
<!-- New Email Modal -->
|
<!-- New Email Modal -->
|
||||||
<!-- <div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
<h4 class="modal-title" id="sendTestEmailModalTitle">Send Test Email</h4>
|
<h4 class="modal-title" id="sendTestEmailModalTitle">Send Test Email</h4>
|
||||||
</div>
|
</div>
|
||||||
|
@ -133,8 +133,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div> -->
|
</div>
|
||||||
<!-- disable sendTestEmail functionality on sending profile page until update handling of /util/send_test_email -->
|
|
||||||
{{end}}
|
{{end}}
|
||||||
{{define "scripts"}}
|
{{define "scripts"}}
|
||||||
<script src="/js/ckeditor/ckeditor.js"></script>
|
<script src="/js/ckeditor/ckeditor.js"></script>
|
||||||
|
|
Loading…
Reference in New Issue