diff --git a/bin/check_password_expiration.pl b/bin/check_password_expiration.pl index 621bf3e944c169ec39a08bba6b003d612e612622..fd2c15ca894b3eb63b94abb56be4145e8224d9a4 100755 --- a/bin/check_password_expiration.pl +++ b/bin/check_password_expiration.pl @@ -204,7 +204,7 @@ sub send_email_template ($$$;$) return if $dry_run; - my $subject = 'Information - Your SNet LDAP password is '; + my $subject = 'Your SNet LDAP password is '; my $template_file = '/opt/etc/template/InfoTemplate.htm'; my $text = ''; @@ -233,6 +233,7 @@ sub send_email_template ($$$;$) . ( $days > 1 ? 's' : '' ) . '</b>. Please change your password, before it\'s expiration using the following URL: <ul><li><a href="https://intragate.ec.europa.eu/snet/">SNet Portal</a></li><li> -> Authentication</li><li> -> SNet LDAP Manager</li></ul> Without this step, your SNet account will become not usable in a few days.'; } + my $real_subject = 'Information - ' . $subject; # Open email template. die "Session date files not found\n" if !-f "$template_file"; @@ -254,7 +255,7 @@ sub send_email_template ($$$;$) my $msg = MIME::Lite->new( From => 'snet@ec.europa.eu', To => $email, - Subject => $subject, + Subject => $real_subject, Type => 'multipart/related' );