Unrequire reply to for notifications.
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 2 May 2018 20:02:21 +0000 (16:02 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 2 May 2018 20:02:21 +0000 (16:02 -0400)
Turning off requiring the reply to for notifications.

classes/data/dataNotificationTypes.php
classes/notifications.php

index b6c08a4..36c5b20 100644 (file)
@@ -150,7 +150,7 @@ class GlmDataNotificationTypes extends GlmDataAbstract
             'replyto'      => array(
                 'field'    => 'replyto',
                 'type'     => 'text',
-                'required' => true,
+                'required' => false,
                 'use'      => 'a',
             ),
 
index 329cf11..b1f91cb 100644 (file)
@@ -165,7 +165,9 @@ class GlmNotifications
 
         $message  = $htmlMessage;
         $header[] = 'From:' . $from_header;
-        $header[] = 'Reply-To:' . $replyto;
+        if ( $replyto ) {
+            $header[] = 'Reply-To:' . $replyto;
+        }
 
         wp_mail( $to_email, $subject, $message, $header );