trying to add reply to in the headers
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 1 Jun 2016 14:14:50 +0000 (10:14 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 1 Jun 2016 14:14:50 +0000 (10:14 -0400)
models/front/events/frontAdd.php

index 8682dde..c3714db 100644 (file)
@@ -490,10 +490,13 @@ class GLmMembersFront_events_frontAdd extends GlmDataEvents
         $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' );