From 37b746ed14fca00dd688817964bc1249c316b873 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 2 May 2018 16:02:21 -0400 Subject: [PATCH] Unrequire reply to for notifications. Turning off requiring the reply to for notifications. --- classes/data/dataNotificationTypes.php | 2 +- classes/notifications.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/classes/data/dataNotificationTypes.php b/classes/data/dataNotificationTypes.php index b6c08a4..36c5b20 100644 --- a/classes/data/dataNotificationTypes.php +++ b/classes/data/dataNotificationTypes.php @@ -150,7 +150,7 @@ class GlmDataNotificationTypes extends GlmDataAbstract 'replyto' => array( 'field' => 'replyto', 'type' => 'text', - 'required' => true, + 'required' => false, 'use' => 'a', ), diff --git a/classes/notifications.php b/classes/notifications.php index 329cf11..b1f91cb 100644 --- a/classes/notifications.php +++ b/classes/notifications.php @@ -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 ); -- 2.17.1