Sending Preview email not working with new template #412
-
Hi, I have a weird issue with a new email template I designed. The really weird thing is that when I log into her account (or any Editor account) from my computer, I can send previews without a problem using this template. So it's obviously not a permissions issue, all permissions are set to standard, email is handled by the default Wordpress email system. We are completely in the dark about this, and possibly it's not an EME issue but I can't think of anything, so I'm hoping someone with more knowledge about can shed some light. Hope anyone can help, thanks in advance. I'm including the new template below, in case it contains any clues:
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
It is certainly not an internet provider issue, mails are sent via EME (so the client has no impact there). However, it may be that she has a javascript error in her browser which might (will) prevent mails from being sent (the form submission is done via javascript/jquery and if an error is encountered on the page, this no longer works). So best check her browser console for hints. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much, I'll take a look into her console. The possibility already crossed my mind but I dismissed it because the problem exists in two different browsers and with only one template. But it really is the only possibility that makes sense. |
Beta Was this translation helpful? Give feedback.
-
Hi Franky, |
Beta Was this translation helpful? Give feedback.
-
A bit weird that wordfence sees it as a XSS though ... calls to admin.php are normal when logged in, so if you ever figure out why this is, maybe I can work around it in a future version. |
Beta Was this translation helpful? Give feedback.
-
I'm guessing the issue has to do with the stylesheet I added to the email header. Templates without stylesheet worked fine all the time, but when I added a styleheet the problem occurred. Apparently Wordfence considers a stylesheet to be a 'script'? |
Beta Was this translation helpful? Give feedback.
Hi Franky,
I finally solved the riddle, it turns out the mail action was blocked by our firewall.
I use WordFence on our site for protection, and in the weekly report there were warnings for XSS blocking of mail messages. In WF dashboard I found this message for all earlier attempts:
https://sitename.url/wp-admin/admin.php?page=eme-emails and was blocked by firewall for XSS: Cross Site Scripting in POST body: generic_mail_message=[etc]
I was able to send previews because my IP address was in the exceptions list, so I added my colleagues IP and now it works for her as well.
Thank you for your time, happy it's solved.