Hyperlinks are overwritten in emails

I am sending emails from my site using Zend_Mail and Send Grid. I have hyperlinks in the email that correspond with what seems like garbage by the time it gets to the user's inbox.

For instance,

href = "http://www.foo.com" becomes href = "http://email.foo.com/wf/click?upn=DSDRHSSBH2938TS".

I don't have this problem when I remove "http: //" from href. However, this is not a solution for me, because links without "http: //" do not work on some email clients.

I checked the contents of Zend Mail and the links look fine, so I wonder if this is a problem with Send Grid or the mail client. I looked all over the internet and found very little information about this. I saw some people with similar problems, but no one was able to provide a real solution.

Has anyone seen anything like this? I will be happy to provide additional information if necessary.

+6
source share
1 answer

It seems like Send Grid is rewriting click tracking URLs. Try disabling this feature in your Send Grid account. https://sendgrid.com/docs/Apps/click_tracking.html

+10
source

Source: https://habr.com/ru/post/910262/


All Articles