This is a simple question, I've tried to get it to work, but failed, so now I'm asking the guru's

What code is needed to be able to pass information through a serial port, and what command actually passes the information or string?

Any information would be helpful.

Thanx.