From 59a6ad13b6c66a76b2d3952d9570030f8312a7cc Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 17 Jul 2019 09:21:39 +0200 Subject: [PATCH] Fix email notification from a previous refactoring --- zmldapsync/zmldapsync.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zmldapsync/zmldapsync.pl b/zmldapsync/zmldapsync.pl index e09c41d..15e5f6d 100644 --- a/zmldapsync/zmldapsync.pl +++ b/zmldapsync/zmldapsync.pl @@ -716,11 +716,11 @@ sub handle_error { my $mail = Email::MIME->create( header_str => [ From => $conf->{general}->{notify}->{from}, - To => $addr, + To => $conf->{general}->{notify}->{to}, Subject => "Zimbra LDAP synchronisation error for domain $domain" ], attributes => { - charset => 'utf-8', + charset => 'utf-8', encoding => 'base64' }, body_str => "LDAP synchronisation for domain $domain failed at step '$step'. The error was\n$err\n",