From e09225f7d339cbf7ec154193b7002671d6a0236c Mon Sep 17 00:00:00 2001 From: Deepa Verma Date: Thu, 12 Apr 2018 10:13:47 +0530 Subject: [PATCH] Form email vaildation --- CRM/Admin/Form/ScheduleReminders.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Admin/Form/ScheduleReminders.php b/CRM/Admin/Form/ScheduleReminders.php index b0fae64bc431..efc9d6512bbe 100644 --- a/CRM/Admin/Form/ScheduleReminders.php +++ b/CRM/Admin/Form/ScheduleReminders.php @@ -334,7 +334,9 @@ public static function formRule($fields, $files, $self) { $errors['absolute_date'] = ts('Absolute date cannot be earlier than the current time.'); } } - + if (!CRM_Utils_Rule::email($fields['from_email'])) { + $errors['from_email'] = ts('Please enter a valid email address.'); + } $recipientKind = array( 'participant_role' => array( 'name' => 'participant role',