Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting around mailto / href / url character limit

I have a mailto link in an anchor tag

<a href="mailto:?subject=Subject&body=Body">Email This</a>

The issue is that the Body parameter is a huge article, and there appears to be a character limit on the url.

Is there a way to get around the limit?

like image 684
HyderA Avatar asked Nov 01 '10 08:11

HyderA


People also ask

Is there a character limit on mailto?

The MAILTO function currently has a limit of around 2000 characters and any greater than this will prevent the message from being opened in your chosen mail app. This is normally fine for standard English alphabetic characters, but can cause issues for non-English alphabetic characters.

Can mailto be a URL?

A mailto link is a Uniform Resource Identifier (URI) scheme for email addresses. It is a type of HTML or URL link that activates the default mail client (Gmail, Outlook etc.) on the computer for sending an e-mail.


1 Answers

Is there a way to get around the limit?

Very hardly.

It is even probable that the limitations vary from browser to browser, or from E-Mail client to E-Mail client.

I would rather use a HTML form and a server-side script to send the message.

like image 140
Pekka Avatar answered Sep 19 '22 16:09

Pekka