• Resolved beachtours

    (@beachtours)


    Hello,

    Your plugin seems to be broken on our site.
    This is what we see within our frondend (e.g. within the page footer on the left colomn)

    mailadress>mailadress

    Clicking the mail link opens two mail windows
    1. with the mail adress within the to field as intended
    2. with “<a” within the to field not intended

    This behavior happend after an website update (plugins, theme, wordpress and php).

    PHP: 7.3
    Wordpress: 5.3.2
    Theme: Hotel Master (by Goodlayers)

    We tested all four “Protect emails using” methods within setup. Every method did something wrong.

    Thanks in advance for your help.

    Klaas from beachtours

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ironikus

    (@ironikus)

    Hey @beachtours – thank you a lot for your message, as well as for using our plugin!
    I just checked on your plugin code and I found the issue.
    This happens due to some wrongly formatted code within your theme.
    I reversed the code to see how it looks with our plugin deactivated and that’s the result:

    <a href=mailto:[email protected]>[email protected]</a>

    What you see is that there are the double-quotes (“) around the value of the href element missing.
    This is why our plugin can’t catch since email since it is basically no standard HTML structure.

    To fix this issue you can do the following:

    1. Correct the HTML structure (If you have access to it)
    2.If you don’t have access to it, you can setup the settings in the following way:

    1. Go to the Email Encode settings, set Protect Emails Using to simple HTML character encoding.
    2. Check the Advanced Settings checkbox
    3. Save
    4. In the advances settings under Protect…, uncheck plain emails by converting them to mailto links

    If this still does not solve your issue, feel free to let me know.

    If you want to check if the encoding works, you can simply use our email checker tool: https://ironikus.com/email-checker/

    Thread Starter beachtours

    (@beachtours)

    Hello,

    thank you for the help so far.
    Sorry for the long delay. These are tough times.
    Hope you are well.

    1.: this is the used html within a footer html widget
    <a href="[email protected]">Mail to the Park Hotel</a>

    2.: changing the setup settings seem to help but as I understand security is weaken with the changed settings.

    Is there any other way to keep the settings and not get the double mail problem.

    Best regards
    Klaas from beachtours

    • This reply was modified 4 years, 8 months ago by beachtours.
    Plugin Author Ironikus

    (@ironikus)

    Hey @beachtours – thank you for your message.

    Regarding your answer:
    1. This is how it looks if you inspect the page element (But this is wrong since Chrome, for example, validates the tags again within that view). What you have to do is to check the full-page source using “View Page Source”

    2. Yes, it weakens it in a way, but it is still well protected against most of the spambots.

    In my last message, I referred on two different ways on how you can fix this, which one of them is to fix the actual HTML code.
    Since my assumption is that this comes from the theme you use, you might need to reach out to the theme creator.

    Hope this helps so far.
    If you have further questions on it, feel free to reach out again! ??
    Stay safe!

    Thread Starter beachtours

    (@beachtours)

    Hello,

    the code I posted was copy/paste out of my WordPress backend directly. I see no error there. Maybe you misunderstood my last message?
    But your second way seems to work. I will use that then.

    Thank you for your help.

    Best reards
    Klaas from neachtours

    Plugin Author Ironikus

    (@ironikus)

    Hey @beachtours – thank you for your answer.
    Nope, I got your questions ??
    My answer might be not totally clear, so please let me clarify it down below:

    In case the code looks fine within the backend, it doesn’t necessarily mean that any other plugin is not validating it again before it gets displayed within the frontend.

    The code that actually is visible on your site is the following one:

    <td
    style="border: 0px; text-align: left; padding: 0;">
    <a
    href=mailto:info@parkhotelleipzig.de>Mail an das Park Hotel</a></td>

    As you can see there, the ” (double quotes) are missing (My assumption is that the theme or pagebuilder you use replaces them).

    In case you use Chrome, you can use the following link to check this issue (Simply paste it within your chrome browser):
    view-source:https://wordpress.p545817.webspaceconfig.de/

    Once you will see the code there, simply search on the page for Mail an das Park Hotel
    There you will see how the code gets delivered directly from your server.
    Since this is no proper HTML, our plugin can’t recognize it, which results in breaking the code.

    In case you want to use it with the strongest encoding we offer, there is still a way of doing that.
    There’s only one small change you need to sacrifice: The text Mail an das Park Hotel
    Instead of the text, we will show the email as well (which gets delivered in an encoded form, so its definitely safe).

    Here’s how you can archive that:

    Simply remove the following code within your backend…
    <a href="[email protected]">Mail to the Park Hotel</a>
    … and replace it with only your email…
    [email protected]

    Once you have done that, please go to your WordPress dashboard -> Email Encoder -> and activate the checkbox for the Advanced settings. After you clicked save, you will see further settings. Please head from there to Protect… and activat the checkbox for plain emails by converting them to mailto links
    Once you clicked save, we will convert the raw emails to clickable mailto links on your site and everything uses the strongest encoding available. ??

    I hope this helps so far and if you have further questions, please reach out at any time.

    PS: To checkif the encoding works fine, you can use our email checker tool: https://ironikus.com/email-checker/

    • This reply was modified 4 years, 8 months ago by Ironikus.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘double mail with > character visible, link not working as intended’ is closed to new replies.