Contact Request Submitted

Email

'.$email.'

Subject

'.$subject.'

Message

'.$message.'

'; // Set content-type header for sending HTML email $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; // Additional headers $headers .= 'From: '.$name.'<'.$email.'>'. "\r\n"; // Send email if(mail($toEmail,$emailSubject,$htmlContent,$headers)){ $statusMsg = 'Your contact request has been submitted successfully !'; $msgClass = 'succdiv'; }else{ $statusMsg = 'Your contact request submission failed, please try again.'; $msgClass = 'errordiv'; } } }else{ $statusMsg = 'Please fill all the fields.'; $msgClass = 'errordiv'; } } ?>