summaryrefslogtreecommitdiff
path: root/script/postman_resend_email_sript.js
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2017-10-15 06:46:12 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2017-10-15 06:46:12 +0000
commitca6c8f41c1a2b9a4b5acae91419a6a114e1c77c6 (patch)
tree40ff112761d82af1d8c1c89d30ede8206502e17b /script/postman_resend_email_sript.js
parent8812fbf61bde539d1599e239044595ccb8a2c3a5 (diff)
downloadPost-SMTP-ca6c8f41c1a2b9a4b5acae91419a6a114e1c77c6.zip
release
Diffstat (limited to 'script/postman_resend_email_sript.js')
-rw-r--r--script/postman_resend_email_sript.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/script/postman_resend_email_sript.js b/script/postman_resend_email_sript.js
new file mode 100644
index 0000000..1905bc5
--- /dev/null
+++ b/script/postman_resend_email_sript.js
@@ -0,0 +1,17 @@
+function postman_resend_email(emailId) {
+ var data = {
+ 'action' : 'postman_resend_mail',
+ 'email' : emailId
+ };
+
+ jQuery.post(ajaxurl, data, function(response) {
+ if (response.success) {
+ alert(response.data.message);
+// jQuery('span#resend-' + emailId).text(postman_js_resend_label);
+ } else {
+ alert(sprintf(postman_js_email_not_resent, response.data.message));
+ }
+ }).fail(function(response) {
+ ajaxFailed(response);
+ });
+}