That looks right, the only thing I would include is applying
wordwrap to $mail_body like this.
PHP Code:
$mail_body = wordwrap($mail_body, 70);
But otherwise it looks like I do it, and I have not experienced any problems yet. I say yet because it seems that quite a few folks are having issues with PHP's
mail function as of late. I saw in one thread that a response from the help desk mentioned that with the volume of email coming out of the free servers, some email services seem to block them as though they (the servers) are spam bots or something.