Prefilling large volumes of body text in GMAIL creates a too long URI request error

Hi guys, this is a question from a question:

Prefill gmail with HTML text

Where I created the application for Google applications - I can call the gmail message page from my application using the URL:

https://mail.google.com/a/domain/?view=cm&fs=1&tf=1&source=mailto&to=WHOEVER%40COMPANY.COM&su=SUBJECTHERE&cc=WHOEVER%40COMPANY.COM&bcc=WHOEVER%40COMPANY.COM&ATPODYPREODEOD

However, when I try to pass a very long line of text in the body parameter, for example, as the body of the response message, I get this error from GMAIL, indicating that the REQUEST URI is too long. Is there a better way to do this so that you fill in the text body field of the gmail compose section. Or somehow open the page and pre-populate javascript in some way ...

+3
javascript html gmail request
Apr 7 '10 at 6:38 on
source share
5 answers

I don’t have enough karma to comment on Victor’s response, but no, you cannot send a message to Gmail. I tried this myself and just got my usual old Gmail home screen, not the layout screen, and of course, don't put the screen together with the values ​​filled as needed by the OP.

This is also very bad, because it would be nice to load a ton of information into the Gmail build window. Does any Gmail employee take care of this issue?

+1
Jun 11 '10 at
source share

Google will not process mailto links longer than 1584 characters (after the mailto: part).

+1
Jun 18 '13 at 20:55 on
source share

Can you send a POST to this URL?

GET URLs are limited to 255 characters.

0
Apr 7 '10 at 10:28
source share

Why not have a form (method = post, target = blank) with hidden fields that represent the variables that need to be sent. Then post this form

0
Mar 03 '11 at 13:20
source share

This is a problem with large URLs. What is the maximum length of a URL in different browsers?

This works using the GET method.

 <form action="https://mail.google.com/a/domain/" method="get" target="_blank"> <input type="hidden" name="view" value="cm"> <input type="hidden" name="su" value="SUBJECT HERE"> <input type="hidden" name="fs" value="1"> <input type="hidden" name="tf" value="1"> <input type="hidden" name="bcc" value="URL LIMIT EXCEEDED&lt;Email list to large&gt;"> <input type="submit" value="Submit"> </form> 

This does not work using the POST method, which it tries, but just gets to the point and stops

 <form action="https://mail.google.com/a/domain/" method="post" target="_blank"> <input type="hidden" name="view" value="cm"> <input type="hidden" name="su" value="SUBJECT HERE"> <input type="hidden" name="fs" value="1"> <input type="hidden" name="tf" value="1"> <input type="hidden" name="bcc" value="URL LIMIT EXCEEDED&lt;Email list to large&gt;"> <input type="submit" value="Submit"> </form> 
0
Nov 03 '15 at 2:01
source share



All Articles