Hi guys this is a followup from the question:
Prefilling gmail compose screen with HTML text
Where I was building a google apps application - I can call a gm
I don't have enough karma to comment on Victor's answer itself, but no, you cannot POST to Gmail's compose window. I tried it myself and just got my regular old Gmail home screen, not the compose screen and certainly not the compose screen with the values filled in as the OP wanted.
It's too bad too, because it was a good idea to get loads of info into a Gmail compose window. Would anyone on the Gmail team care to address this issue?
Why not have a form (method = post, target = blank) with hidden fields that represent the variables you need to send. Then post that form
This is the problem with large URL's What is the maximum length of a URL in different browsers?
This works using Method GET
<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<Email list to large>">
<input type="submit" value="Submit">
</form>
This doesn't work using Method POST it tries but just gets to a 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<Email list to large>">
<input type="submit" value="Submit">
</form>
Google will not process mailto links that are longer than 1584 characters (after the mailto:
part).