And IIRC you will need to use "\r\n" at the end of your headers as opposed to "\n". Just for further explanation, "\n" is a line feed and "\r" is a carriage return
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --