That's interesting. This seems to be the process?

1) GET to get the cookies from the main login main page
2) POST to login with those cookies
3) GET in /message/compose to get those cookies
4) POST with those cookies to send the message

So basically 4 sockopen events? That seems doable, but quite painful to write. I've also been shown this script, which is supposed to make it easy to save cookies and log in, but naturally I can't figure out how to make it work ^_^

http://script.quakenet.org/wiki/MHTTP