Error when adding ['title'] field to an email message subject of contact form
What does this output: showme($subject);
Also, use "Reply-To: " for the user entered email and set FROM to an email on the server (like your email). Some servers will block emails if they know the FROM address didn't originate from the server it's sent from. Like if I enter a gmail address mail servers will know your server isn't authorized to send from random gmail addresses.
Also you might find it easier to use the sendMessage() function in /lib/common.php. If you look in the code there's some examples on how to use it just above the function header.
Let me know how it goes.