OK I finally figured it out... NOW the only question left remaining is how to send a carbon copy.
i tried this
sendln(in, out, "Cc:" + CC);
but all it does is lock up