I'm trying to get a php mail script working, but it's nog going to good....

I looked around here for some sample code and foud a link to some site, don't remember wich, where I found some... I've changed it a bit, but it doesn't work... there were more "headers" first, but everyting in the header after "Content-type: text/html;" is printed out as text in the email... so in the email where the From: adress should be, theres the adress to the server, and at the top of the email theres the header text, including the "From:" thing...

so, what I want is the sender/reply adres to be in the right adress field and no additional text in the message...

thanks guys... it reduced the problem a litle bit...
I removed the "." and now the headers don't show in the message, but the replyadress is still not right... when I press reply, the adress is "mydomain.whatever@theWebHotelServer.whatever".