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

Links getting mangled in immediate emails (All Mail setting) #118

Open
x2764tech opened this issue Oct 27, 2017 · 4 comments
Open

Links getting mangled in immediate emails (All Mail setting) #118

x2764tech opened this issue Oct 27, 2017 · 4 comments

Comments

@x2764tech
Copy link
Contributor

When an message is sent out immediately, the content is wrapped in quote marks, eg:

Test posted an update in the group Testing Group

"Content of message"

This is hard-coded at https://github.com/boonebgorges/buddypress-group-email-subscription/blob/master/bp-activity-subscription-functions.php#L216

The problem we are having is that, when the message ends with a link, the closing double-quote is appearing as part of the link:

"a link https://clandestinecakeclub.co.uk/ccc-events/cheshire-south-fall-winter/"

And when someone clicks on the link, they are getting a 404 error.

I've temporarily fixed this but putting an extra space in (most users don't notice), but I'm wondering if anyone else has had this issue, and if there is a better solution for it?

@boonebgorges
Copy link
Owner

Ah, sounds like the email client is being a bit fussy.

How about if we add a line break before the close quote?

@x2764tech
Copy link
Contributor Author

@boonebgorges well, SparkPost's engagement tracking to be exact, but I've had similar issues with other email providers...

If you add a link break before the close quote, would it make sense to add one after the open quote too?

"
Content of Message
"

I'm not sure, but having some whitespace would fix the problem. Looks like there's lots of whitespace, but most of it outside the (extended)-ASCII range.

@boonebgorges
Copy link
Owner

If the specific issue is with URL parsing, it's unlilkely that a line break before the message would make a difference - I assume that parsers can figure out "https://.... That said, it's maybe more aesthetically pleasing to be symmetrical.

@r-a-y you have more experience with provider email parsing than I do - any objections to adding the line breaks?

@r-a-y
Copy link
Collaborator

r-a-y commented Oct 30, 2017

@x2764tech - You should be able to edit the email content from the "Emails" admin dashboard to remove the quotations:
https://github.com/boonebgorges/buddypress-group-email-subscription/wiki/Email-Tokens

You'll want to edit the "A member created a group activity entry" post and modify the "Plain text email content" field.

@boonebgorges - This is only pertinent for plain-text emails. We could just remove the quotations if they are a bother.

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

3 participants