0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.135.205.102


Current Path : /var/www/html/oums/js/
Upload File :
Current File : /var/www/html/oums/js/send_mail.js

function load_page() {
	load_page_data(
		window.location.href.substr(window.location.href.lastIndexOf("/") + 1)
	);
	clrs_data();
}

function clrs_data() {
	document.getElementById("txtmailmain").value = "";
    document.getElementById("txtmailcopy").value = "";
    document.getElementById("txtmailbccy").value = "";
	document.getElementById("txtmailsubj").value = "";
	document.getElementById("txtmailtext").value = "";
	document.getElementById("txtmailmain").focus();
	//$("#txtmailcopy").hide();
}

function send_mail() {
	$.ajax({
		url: "src/send_mail.php",
		type: "POST",
		//dataType:"json",
		data: {
			mail_main: document.getElementById("txtmailmain").value,
			mail_copy: document.getElementById("txtmailcopy").value,
			mail_bccy: document.getElementById("txtmailbccy").value,
			mail_subj: document.getElementById("txtmailsubj").value,
			mail_text: document.getElementById("txtmailtext").value,
			mail_file: "",
		},
		cache: false,
		beforeSend: function () {
			show_process();
		},
		success: function (data) {
			hide_process();
			alert(data.mesg);
			clrs_data();
			$("#page_content_process").html("S: " + data);
		},
		error: function (data) {
			hide_process();
			$("#page_content_process").html("Error: " + data);
		},
	});
}