From: Steve Sutton Date: Wed, 2 May 2018 20:02:21 +0000 (-0400) Subject: Unrequire reply to for notifications. X-Git-Tag: v1.0.0^2~19 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=37b746ed14fca00dd688817964bc1249c316b873;p=WP-Plugins%2Fglm-member-db-billing.git Unrequire reply to for notifications. Turning off requiring the reply to for notifications. --- 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 );