added reply-to field using contact email on form
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 1 Jun 2016 13:55:30 +0000 (09:55 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 1 Jun 2016 13:55:30 +0000 (09:55 -0400)
models/front/events/frontAdd.php

index 899565c..8682dde 100644 (file)
@@ -490,7 +490,8 @@ class GLmMembersFront_events_frontAdd extends GlmDataEvents
         $to      = $to_email;
         $subject = 'Event Form Submission';
         $message = $htmlMessage;
-        $headers = 'From:'. $fromEmail . "\r\n";
+        $headers = array('From' => $fromEmail,
+                   'Reply-To' => $contactEmail);
 
         wp_mail($to, $subject, $message, $headers);