Mail in a cgi aplication

Hi, im newbe in delphi programing and im using it for cgi.
I need to do cgi that receives a form and submit it via mail. I known
that this is so easy in another languages i.e perl, but i dont know how
to do this in Delphi...

Some help, please.

oh, and sorry for my english

Jose Manuel