Skip to main content
Question

How to enable a pre-filled mail via the mail:to function as a hyperlink? (And: how to get around the character limit of setting links)

  • October 17, 2023
  • 9 replies
  • 159 views

Forum|alt.badge.img

Hello dear community! ๐Ÿ˜Š

I would like to achieve that the user can select a contact by using a survey. An email address is assigned to this contact. If one clicks on the contact, a predefined email opens with a predefined text.

To achieve this, I used the tool https://mailtolink.me/ to write such a ready-made e-mail. Example:

mailto:info@example.com?subject=Hello%20world!%20This%20is%20my%20subject%20with%20very%20important%20information&body=Hello%20there%2C%0D%0A%0D%0AI%20really%20would%20like%20to%20make%20the%20mail%3Ato%20function%20work. %0D%0AAdditional%20text%2C%20additional%20text%2C%20additional%20text%2Cadditional%20text%2Cadditional%20text%2Cadditional%20text%2Cadditional%20text%2Cadditional%20text%2Cadditional%20text%2Cadditional%20text%2Cadditional%20text. %0D%0A%0D%0AAdditional%20text%2C%20additional%20text%2C%20additional%20text%2Cadditional%20text%2Cadditional%20text%2Cadditional%20text%2Cadditional%20text%2Cadditional%20text%2Cadditional%20text%2Cadditional%20text%2Cadditional%20text.%0D%0A%0D%0A%0D%0AKind%20regards%0D%0ASender

I then copied the code.

After that I marked (on a certain result page) of my survey, a certain text area "Contact me now" and pasted the code as a hyperlink.

Result: It works so far!

 

But: There seems to be a character limit for links (approx. 266 characters maximum), because above a certain length of the prefabricated email, this method no longer works, or it looks very weird.


Does anyone have any ideas how else I can solve this?
Unfortunately, it is not possible to shorten the text within the prefabricated e-mail by the length of the URL, as otherwise the meaning is no longer understood.
 

Please help!

Thank you very much!

9 replies

Liz
Exโ€“Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • October 17, 2023

Hi @Jasmedi I donโ€™t believe there is a character limit for hyperlinks, but let me check with the support team on this! 


Forum|alt.badge.img
  • Author
  • Explorer
  • October 18, 2023

Hi @Liz  ,

to understand it better I prepared a small example:
 

https://medigmbh.typeform.com/to/yy2z2xW1


When you click โ€œContact Bโ€ and you get to the ending screen โ€œYou chose: Contact Bโ€ you can see, that the code is overflowing in this area. The code is:

mailto:veryveryveryloooooooooooooooooooong-mail-receiver@example.com?subject=Digitale%20Gesundheitsanwendung%20(DIGA)%20%2F%2F%20companion%20patella&body=Liebes%20Krankenkassen-Team%2Cim%20Anhang%20finden%20Sie%20mein%20Rezept%20%2F%20meinen%20Befund%20zur%20Digitalen%20Gesundheitsanwendung%20(DiGA)%20companion%20patella%20(PZN%3A%2017850263).Dazu%20folgende%20Anfrage%3A%20Werden%20die%20Kosten%20der%20DiGA%20companion%20patella%20(wie%20bei%20der%20gesetzlichen%20Krankenversicherung)%20auch%20von%20meiner%20privaten%20Krankenversicherung%20erstattet%3FIch%20freue%20mich%2C%20wenn%20Sie%20sich%20zu%20den%20weiteren%20Schritten%20bei%20mir%20melden.Herzlichen%20Dank!


It appears that the length of the characters do indeed matter!

 

 

When you compare it to option โ€œAโ€ and to ending screen โ€œAโ€ where I used a mailto-code with a smaller amount of text, it works just fine.

Do you see, what I mean?


Liz
Exโ€“Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • October 18, 2023

Hi @Jasmedi I asked our product team about this, and we donโ€™t currently have any limitations on the character length for URLs. 

Do you mind sharing a screenshot or video of how you have the hyperlink set up in the builder? 


Forum|alt.badge.img
  • Author
  • Explorer
  • October 18, 2023

Hi @Liz  !

Sure! :) Here is how I proceeded:

 

Step 1:

I highlight the required text section.

Step 2:

I click on the chain symbol to open the area where I can insert the link.

Step 3:

I insert the code via pressing โ€œCtrlโ€ and โ€œVโ€ on my keyboard.
Then I press โ€œenterโ€.

Step 4:

After I pressed โ€œenterโ€ the required text area is still highlighted.

Step 5:

I publish the changes. And then when I chose the โ€œoption 3โ€ to make sure, that I get the ending โ€œyou chose: Contact Cโ€ there can be seen, that the code is still overflowing.

 


Liz
Exโ€“Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • October 19, 2023

Wow thatโ€™s odd. I canโ€™t see anything offhand that would be causing the hyperlink to act in this manner. Do you mind if the technical support team takes a closer look at this? Theyโ€™ll be able to log into your account and test this further to see whatโ€™s causing the issue. If you contact them here and reference this post, that should help speed things up!


Forum|alt.badge.img
  • Author
  • Explorer
  • October 24, 2023

Hello dear Team! :)

 

the support was able to solve this issue! I checked it and it worked all fine!
Many many thanks for making this work! The topic can be closed!


Kind regards

Jasmedi


Liz
Exโ€“Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • October 24, 2023

Oh glad to hear it, @Jasmedi ! What solved the issue? ๐Ÿ‘€


Forum|alt.badge.img
  • Author
  • Explorer
  • October 24, 2023

@Liz  ! I donโ€™t know! It was the developerโ€™s magic of the typeform support.

I am happy that it works now! ๐Ÿ˜Š


Liz
Exโ€“Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • October 24, 2023

Ha glad it was an easy fix then, @Jasmedi ! Nothing like a sprinkle of developer magic. ๐Ÿ’ช