It's not "/r", it's "\r", just like in C. "\r" is a CarriageReturn, and "\n" is a LineFeed or NewLine. In DOS/WIN lines in text files are terminated with a "\r\n". In UNIX they are terminated with just a "\n" (M$ is so wasteful). So it is best to use "\r\n" so that all mail programs can handle the headers.
To send an entire HTML file in place of the $mailbody variable you could do something like this:
Replace the
with
And yes, I would strongly recommend learning Perl. I believe it would be easier for a n00b programmer to learn, it's quick and easy and very powerful. And you will learn things in Perl that will apply to C. A lot of the stucture, looping and decisions are very similar to C.
[ July 13, 2002: Message edited by: VoidMain ]