As an example of how to use the DreamHost formmail.cgi, below is a simple 'Contact Form' I am using on one of my sites...
Your Email Address
Enter Your Message Here
The formatting probably won't survive, but it might be of some use to you.
Save [color=#CC0000]$50[/color] on DreamHost plans using [color=#CC0000]PRICESLASH[/color] promo code (Click for DreamHost promo code details)