it might be getting rejected because the referer is invallid or unexistant. It's the way forms work like.
Solution:
dock your webmail into a dialog using nhtml_2.*.dll
I'm sure a quick google can return you it, download the Folken^ one because it's got several bugfixes and it works really sweet.