jdavidbakr / mail-tracker

Package for Laravel to inject tracking code into outgoing emails.
MIT License
570 stars 129 forks source link

Weird issue with tracked links #122

Closed devoncmather closed 3 years ago

devoncmather commented 3 years ago

This package has worked pretty well for us so far, so thanks for that 👍

Currently experiencing a weird issue with the subdomain where it sometimes has two .. after it rather than one.

Xnip2020-11-04_12-46-59

The user in question seems to be using Windows with Outlook and Internet Explorer/Edge.

The logged emails don't show the links with two dots after subdomain. And since we are writing the record to the db it must have reached us using the subdomain with regular formatting otherwise it wouldn't have managed to connect and get a 404 page. So it seems like either the email in outlook is having the redirect url re-written, or possibly its happening in Explorer.

Has anyone has similar issues on Windows?

I have tried testing this on a friends computer with outlook and windows as well as using browser stack with the trackign links both worked ok 🤷‍♂️

jdavidbakr commented 3 years ago

Can you look in your server logs and see the requests that came in for both of the links?

devoncmather commented 3 years ago

Hi thanks for the reply, we bcc an internal email address to a cloud outlook address, that one shows links correctly.

So the only thing I can think here is, outlook on windows seems to be causing some sort of url mismatch?

I have turned off url tracking for now, as it's too critical for the business to have email links not working. I understand this is quite tricky to debug, so just registering this here in case others end up having similiar issues.

jdavidbakr commented 3 years ago

Closing pending further troubleshooting information.