Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hyperlinks are being overwritten in emails

I am sending out emails from my website using Zend_Mail and Send Grid. I have hyperlinks in the email that are being overwritten with what appears to be garbage by the time it gets to the user's inbox.

For example,

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

I do not have this problem when I remove the 'http://' from the href. This is not a solution for me however, because links without 'http://' do not work in some email clients.

I checked the Zend Mail content and the links appear to be fine, so I am wondering if this is a problem with Send Grid or the email client. I have looked all over the web and have found very little information on this. I have seen some people with similar issues, but no one has been able to provide a real solution.

Has anyone seen anything like this? I'll be happy to provide more information if needed.

like image 502
itsAllGood Avatar asked Mar 08 '12 16:03

itsAllGood


People also ask

Do links work in emails?

You can insert a link into an email with a hyperlink. Hyperlinks allow your recipient to click the custom text and easily open your links. Hyperlinks will only be shown to recipients if they are using a supported email app.

How do I fix the blue link in Gmail?

Option 1: Use the <span> method. The <span> method is the simplest technique to stop phone numbers and addresses turning blue in Gmail. It's perfect for if you want to stylize them differently from your other links while keeping their functionality.

How do you make a link blue in an email?

Hover over the email you'd like to modify and click Edit. Click into the module with the link you want to edit. Highlight the link, then click the text color icon in the rich text toolbar and select a color. To access more color options, click the Advanced tab and use the color picker.

How do I stop hyperlinks in Gmail?

If you would like to disable the automatic Smart Link Previews when composing an email, you can do so by clicking the Right Inbox icon at the top right of your Gmail page and selecting 'Smart Link Preview Settings'. You will then be presented with an option to disabled the feature.


1 Answers

It looks like Send Grid is re-writing the URLs for click tracking. Try disabling this feature in your Send Grid account. https://sendgrid.com/docs/Apps/click_tracking.html

like image 161
JamesG Avatar answered Sep 21 '22 10:09

JamesG