Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obsfucated mailto losing body text #3

Open
edjw opened this issue Jan 5, 2016 · 1 comment
Open

Obsfucated mailto losing body text #3

edjw opened this issue Jan 5, 2016 · 1 comment

Comments

@edjw
Copy link

edjw commented Jan 5, 2016

I'm using a mailto link that includes default body text. The ObsfucateEmail plugin appears not to be obsfucating the body part of the link and when the link is clicked on the default body text is missing in the email client.

Can the obsfucated links retain the body part of the link?

Unobsfucated mailto link:
Please email us with at least one of the following

Obsfucated mailto link:
Please email us with at least one of the following

@wshawn
Copy link
Owner

wshawn commented Jan 6, 2016

After looking at your site, it is indeed working as intended.

Now on to your problem.

Try creating an uncached chunk to hold your email links:

<a href="mailto:[email protected]?subject=Membership cancellation&body=Hi SOMENAME, I'd like to cancel my ORG membership. My supporter number is SOMENUM. My postcode is SOME POSTAL CODE. The last 4 digits of my bank account number are SOME NUMBERS.</a>

Call it in place of your link:
[[!$testObfuscateSkipBody]]

The above returns:

<a href="&#x6d;&#x61;&#105;l&#116;&#111;&#x3a;&#x73;&#117;&#x70;&#x70;&#x6f;&#x72;&#x74;&#x65;&#x72;&#x73;&#x40;&#x6f;&#x70;&#x65;n&#114;i&#103;&#x68;&#116;&#115;&#103;&#x72;o&#x75;&#112;&#x2e;&#x6f;&#x72;g&#x3f;&#115;&#117;&#x62;j&#101;&#99;&#x74;&#x3d;&#77;&#x65;&#x6d;b&#x65;&#x72;&#115;&#x68;&#x69;&#x70; cancellation&body=Hi SOMENAME, I'd like to cancel my ORG membership. My supporter number is SOMENUM. My postcode is SOME POSTAL CODE. The last 4 digits of my bank account number are SOME NUMBERS.</a>

You can call the chunk with parameters to use as placeholders for the card numbers, support number, and postal code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants