I am sending a confirmation email using the mail function built in to PHP. However, it is only working locally on my server which has been assigned my university. The site is http://adonnelly759.students.cs.qub.ac.uk/thatch/.
When a contact form is sent it should send an email to myself under an admin email address and a confirmation of the email to the clients email address which they provided.
I have set up the code like follows:
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= 'From: <Thatch>' . "\r\n";
// Sending the email to the users provided e-mail
mail($email, $userSub, $userMsg, $headers);
Update: Decided to ditch the mail() function
and go for SwiftMailer. Simple and easy to use. Thanks for all the help.