mirror of https://github.com/gophish/gophish
Created default email template and landing page passed for _send_test_email_ in sending profile page
parent
e889052a90
commit
ffb14b7927
|
@ -3,14 +3,22 @@ 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: '_send_test_email_',
|
||||||
|
subject: 'test email from gophish',
|
||||||
|
html: 'test email from gophish'
|
||||||
|
},
|
||||||
first_name: $("input[name=to_first_name]").val(),
|
first_name: $("input[name=to_first_name]").val(),
|
||||||
last_name: $("input[name=to_last_name]").val(),
|
last_name: $("input[name=to_last_name]").val(),
|
||||||
email: $("input[name=to_email]").val(),
|
email: $("input[name=to_email]").val(),
|
||||||
position: $("input[name=to_position]").val(),
|
position: $("input[name=to_position]").val(),
|
||||||
url: '',
|
url: '',
|
||||||
page: { name: '' },
|
page: {
|
||||||
|
name: '_send_test_email_',
|
||||||
|
html: 'test email from gophish'
|
||||||
|
},
|
||||||
smtp: {
|
smtp: {
|
||||||
|
name: '_send_test_email_',
|
||||||
from_address: $("#from").val(),
|
from_address: $("#from").val(),
|
||||||
host: $("#host").val(),
|
host: $("#host").val(),
|
||||||
username: $("#username").val(),
|
username: $("#username").val(),
|
||||||
|
|
Loading…
Reference in New Issue