Page 1 of 1

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

Posted: Fri Oct 29, 2010 2:22 am
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!

Re: Smarty's mailto doesn't work!

Posted: Fri Oct 29, 2010 2:44 am
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.

Re: Smarty's mailto doesn't work!

Posted: Fri Oct 29, 2010 7:20 am
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.

Re: Smarty's mailto doesn't work!

Posted: Fri Oct 29, 2010 10:01 pm
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.

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

Posted: Sat Oct 30, 2010 4:31 am
by cyberman
You're welcome ;) ...