diff --git a/lib/NGCP/Panel/Utils/Email.pm b/lib/NGCP/Panel/Utils/Email.pm index baa0dead8c..e56b9d26a8 100644 --- a/lib/NGCP/Panel/Utils/Email.pm +++ b/lib/NGCP/Panel/Utils/Email.pm @@ -30,6 +30,8 @@ sub send_template { my ($c, $vars, $subject, $body, $from, $to) = @_; my $t = Template->new; + $c->log->info("Trying to send mail from '" . $c->qs($from) . "' to '" . $c->qs($to) . "'"); + my $processed_body = ""; $t->process(\$body, $vars, \$processed_body) || die "error processing email template body, type=".$t->error->type.", info='".$t->error->info."'"; @@ -58,6 +60,8 @@ sub send_template { # to => $template_processed->{to}, #); + $c->log->info("Successfully handed over mail from '" . $c->qs($from) . "' to '" . $c->qs($to) . "'"); + return 1; }