[TYPO3-english] Subject with spaces for email links

Richard Davies richard at ocular.co.nz
Wed Sep 26 23:11:08 CEST 2012


Hi Stephen

Do you mean a mailto? The mailto tag is a URI, so needs to be properly
encoded, just like URLs. This means you need to convert characters
according to their encoding.
For an easy hand guide, see http://www.w3schools.com/tags/ref_urlencode.asp

For php, use urlencode. It may be that Typo3 has some sort of urlencode
wrapper/typoscript (depending on where you are putting the mailto) as well,
but am not aware of it.

If you are about to send an email about anything web and not Typo3, first
do a quick search. I used the first line from your email and the first
result is this:
http://www.gotfusion.com/tutsTD/emailBits.cfm
which would have answered your question. It also means you get an instant
result, instead of having to wait for someone to get around to replying

Richard


On 26 September 2012 19:06, Stephen Bungert <stephenbungert at yahoo.de> wrote:

> How can I add a subject (with spaces in it) to an email link?
>
> The subject seems to cropped at the first space?
>
> Is this possible?
> --
> Stephen
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list