Skip to content
Snippets Groups Projects
Commit 4bfbd984 authored by Jared Hancock's avatar Jared Hancock
Browse files

email: Add warning to ticket view page

If the email address in use by the end user is not valid, display a warning
on the ticket view page. This allows an agent to easily flag potential spam
or correct a legitimate email address before sending a response and
receiving a bounce notice.
parent 35992da5
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,8 @@ if (!$errors['err']) {
$lock->getStaffName());
elseif (($emailBanned=TicketFilter::isBanned($ticket->getEmail())))
$errors['err'] = __('Email is in banlist! Must be removed before any reply/response');
elseif (!Validator::is_valid_email($ticket->getEmail()))
$errors['err'] = __('EndUser email address is not valid! Consider updating it before responding');
}
$unbannable=($emailBanned) ? BanList::includes($ticket->getEmail()) : false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment