$to      = $to_email;
         $subject = 'Event Form Submission';
         $message = $htmlMessage;
-        $headers = array('From' => $fromEmail,
-                   'Reply-To' => $contactEmail);
+        $headers = 'From:' . $fromEmail . "\r\n" .
+                   'Reply-To:' . $contactEmail;
+        $header[] = 'From:' . $fromEmail;
+        $header[] = 'Reply-To:' . $contactEmail;
+        print_r($header);
 
-        wp_mail($to, $subject, $message, $headers);
+        wp_mail($to, $subject, $message, $header);
 
         // remove the filter to avoid conflicts
         remove_filter( 'wp_mail_content_type', 'set_content_type' );