Embedded HTML Links problem

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
jamedo
Forum Newbie
Posts: 2
Joined: Fri Jun 20, 2008 11:03 am

Embedded HTML Links problem

Post by jamedo »

Hey there.

Sending an HTML mail.

Inside the body I am including an <a> tag.

The mail sends properly. The link exists in the right position, and is treated as a link(blue, underlined, etc).

But when I click it, it opens a browser window to my default homepage. It does not go to the address I assigned the <a> tag.

When I rollover the link however, it shows : "outbind://14-" followed by many random string characters. Then at the end exists the address that I assigned to it.

Any help would be much appreciated.

Thank you in advance.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Embedded HTML Links problem

Post by califdon »

Don't use an html anchor tag. Most email clients recognize a fully qualified URL and will make it a link.
jamedo
Forum Newbie
Posts: 2
Joined: Fri Jun 20, 2008 11:03 am

Re: Embedded HTML Links problem

Post by jamedo »

hey califdon.

I tried that and Outlook does not make it a link. Also, I do not want the full URL to be seen. So that is why I was using the anchor tags.

Anyone have any ideas?

I am using an absolut URL.

Thanks.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Embedded HTML Links problem

Post by califdon »

jamedo wrote:hey califdon.

I tried that and Outlook does not make it a link. Also, I do not want the full URL to be seen. So that is why I was using the anchor tags.

Anyone have any ideas?

I am using an absolut URL.

Thanks.
Good old Outlook! The problem is, if you're going to send HTML tags in email, you need to use a MIME type header, and even then, some email clients either won't accept a MIME type or the user has disabled MIME (I do, because it exposes the user to malicious links). Also, even with an anchor, the full URL will show up in the tooltip or status bar.

I am not up on MIME type headers, since I obviously don't like them, but if you want to do that, look that up in Google.
Post Reply