<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.7 |
+ | CiviCRM version 5 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2018 |
+--------------------------------------------------------------------+
$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',