diff options
author | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2017-10-15 06:46:12 +0000 |
---|---|---|
committer | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2017-10-15 06:46:12 +0000 |
commit | ca6c8f41c1a2b9a4b5acae91419a6a114e1c77c6 (patch) | |
tree | 40ff112761d82af1d8c1c89d30ede8206502e17b /script/postman_resend_email_sript.js | |
parent | 8812fbf61bde539d1599e239044595ccb8a2c3a5 (diff) | |
download | Post-SMTP-ca6c8f41c1a2b9a4b5acae91419a6a114e1c77c6.zip |
release
Diffstat (limited to 'script/postman_resend_email_sript.js')
-rw-r--r-- | script/postman_resend_email_sript.js | 17 |
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); + }); +} |