% if ($error) {
<% $error %>
% } else {
Log email condition deleted
% }
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right([ 'View system logs', 'Configuration' ]);
my $logemailnum = $cgi->param('logemailnum');
$logemailnum =~ /^\d+$/ or die "bad logemailnum '$logemailnum'";
my $log_email = FS::log_email->by_key($logemailnum)
or die "logemailnum '$logemailnum' not found";
my $error = $log_email->delete;
%init>