Smarty's mailto doesn't work! [Solved]

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Locked
colinmcc
Forum Members
Forum Members
Posts: 11
Joined: Fri Oct 29, 2010 12:06 am

Smarty's mailto doesn't work! [Solved]

Post by colinmcc »

(I can't find a smarty related part of this forum, so hope that if isn't the right place for my question then a moderator will move this please..)

In my footer tpl I have written

Code: Select all

Contact me at  {mailto address="xxxx@xxxx.com"  subject="Contact from xxxx.com" encode="javascript"}
When I save and reload the page the email address is shown but followed by an

Code: Select all

 Â
 , it looks like

Code: Select all

 "xxxx@xxxx.com"Â
  and the whole string including the inverted commas and the  Â has been made into the clickable html mailto link. So the link when clicked doesn't work! My email creator opens but with no to: address or subject loaded.

I can't see anything wrong with my syntax, so is this a smarty 'bug'..?

Thanks!
Last edited by colinmcc on Fri Oct 29, 2010 10:03 pm, edited 1 time in total.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Smarty's mailto doesn't work!

Post by Wishbone »

Interesting... Copying your line does the same thing. When I type it by hand, it doesn't

http://portlandkarting.com/testing

Try re-typing it... Maybe you had some funny control character in there.
Last edited by Wishbone on Fri Oct 29, 2010 2:48 am, edited 1 time in total.
cyberman

Re: Smarty's mailto doesn't work!

Post by cyberman »

Have you the same error with mailto param "hex"?

It is in my opinion the better solution cause javascript must be allowed on user site - if not they will see nothing.
colinmcc
Forum Members
Forum Members
Posts: 11
Joined: Fri Oct 29, 2010 12:06 am

Re: Smarty's mailto doesn't work!

Post by colinmcc »

wishbone wrote: Interesting... Copying your line does the same thing. When I type it by hand, it doesn't

http://portlandkarting.com/testing

Try re-typing it... Maybe you had some funny control character in there.
Thanks! Yes I tried re-typing it and the link is now fine!

And, also, thanks to Cyberman too, I can use hex as an alternative.
cyberman

Re: Smarty's mailto doesn't work! [Solved]

Post by cyberman »

You're welcome ;) ...
Locked

Return to “The Lounge”