Question

I am trying to pre-populate email subject with a rather long sentence. The mail client cuts half of it off though. Is there a way around it?

Était-ce utile?

La solution

As it is shown here What is the email subject length limit?, there is an intrinsic limitation for each subject's line, which is of 998 (the maximum allowed), with a suggestion to limit to 78 characters.

The answer I linked suggests to add a carriage return, in order to overcome the limit.

So, instead of having as header:

Subject: This is a test

You should have:

Subject: This
is a test

You can try with the urlencoded version of a carriage return, which is: %0D

It's not the best solution (since having the subject on multiple lines is not the best), but it could be a good workaround to this limitation.

Autres conseils

we can do it by

<a href="mailto:someone@example.com?Subject=your%20subject>

no more chaeracters than a 998.avoid returns

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top