Putting links in newsletters

Started by uscpsycho, August 28, 2015, 04:54:30 PM

Previous topic - Next topic

uscpsycho

Is there a special way to put links in a newsletter?

I have the HTML option checked and using <a></a> tags for my links. However, my links are destroyed by SMF.

For instance if I put this in the text of my newsletter:
Click <a href="http://www.website.com">here</a>!

It produces a hyperlink in the newsletter but the link ends up pointing to a url like applewebdata://2A111F0F-ACBb-4E99-9DEE-16EA5CDEEE0A/%C2%93http://www.website.com

What do I have to do to make hyperlinks in a newsletter point to the desired url?

JBlaze

Are you using a Mac or iPad/iPhone when sending newsletters?
Jason Clemons
Former Team Member 2009 - 2012

uscpsycho

Quote from: JBlaze on August 28, 2015, 05:00:52 PM
Are you using a Mac or iPad/iPhone when sending newsletters?

I'm using a browser on a Mac. But I am entering the newsletter text into the admin page. I know Macs can muck up file references but I don't think that should affect what SMF is doing on the server side as long as I enter the html code correctly within the newsletter text.

Anyway, bottom line is yes, I'm on a Mac. So how do I fix this so the url's in my hyperlinks work the way I want them to?

Thanks.

JBlaze

#3
Please send off a sample newsletter to my email, [redacted] so I can see if the problem is in the actual email or locally.
Jason Clemons
Former Team Member 2009 - 2012

uscpsycho

I just forwarded the newsletter to you from my email address and I sent a newsletter directly to you as well.

I wonder if the problem has anything to do with the fact that my link refers back to a page on the forum itself?

JBlaze

Try sending me the full newsletter directly from your forum. The one you sent me didn't have any links.

I'm thinking this is an issue with your computer, automagically inserting the applewebdata:// into the links.

It looks as if it could be an Apple WebKit issue. On Windows, the URL doesn't contain applewebdata://, but rather it looks like this:
<a href=3D"http://www.example.com">Link</a>
Jason Clemons
Former Team Member 2009 - 2012

uscpsycho

I previously sent you a newsletter directly from the forum but you didn't get it so I sent a second one. Please let me know if you again didn't get it.

JBlaze

I got it. Here's what I received

--SMF-9b17629ae7df1a93acf204f921a4488b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html><head><title>Newsletter url problem </title></head>
<body>Here is an example of the problem.<br />
<br />
The link is to a page on my forum.<br />
<br />
<a href="http://www.example.com/forum/index.php?action=profile;area=subscriptions">LINK</a></body></html>
--SMF-9b17629ae7df1a93acf204f921a4488b--


So, it's not SMF that's sending the wrong URLs. It has to be your mail client which is inserting it.
Jason Clemons
Former Team Member 2009 - 2012

uscpsycho

There is something really weird about this. I tried opening the email on another computer using my webmail.

From webmail the link points to this url:

https://webmail.example.com/versions/webmail/11.5.5-RC/%C2%93http://www.example.com/forum/index.php?PHPSESSID=pc7fhk4dpanvvddi05jh0jeks3&action=profile;area=subscriptions%C2%94

For some reason when I try to open links from the newsletter it tries to open it locally. From my computer it was looking to applewebdata and from webmail it was looking to the webmail domain.

I'm talking about the exact same email here. Trying to open from Outlook on my Mac the url is prefixed by applewebdata and from webmail it is prefixed by webmail.domain.com...

Links from all other emails are behaving. What is it about SMF newsletters that is causing my url's to be prepended?

uscpsycho

Same problem on Android. I tried two email apps and when I click on the link it points back at itself.

Kindred

You are pasting from another program into your newsletter, aren't you?

%94 in that post is URL encode for the curly quotes....   And your newsletter is being sent NOT in UTF8, I would bet...   So, the system sees that junk before the link and doesn't understand that it is a full link, and therefor thinks it is a relative link...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: