Merge remote-tracking branch 'calcms/master'

This commit is contained in:
www-data
2024-02-01 21:53:40 +01:00
3 changed files with 4 additions and 1 deletions

View File

@@ -73,6 +73,7 @@ apt-get install <deb-package>
libapreq2-3
libapache2-request-perl
libapache-dbi-perl
libauthen-sasl-perl
libauthen-passphrase-blowfish-perl
libcalendar-simple-perl
libcrypt-blowfish-perl

View File

@@ -8,6 +8,7 @@ use utf8;
use Email::Sender::Simple();
use Email::Simple();
use MIME::Words qw(encode_mimeword);
use Encode;
sub send($) {
my ($mail) = @_;
@@ -21,7 +22,7 @@ sub send($) {
'Reply-To' => $mail->{'Reply-To'},
'Subject' => encode_mimeword($mail->{'Subject'}, 'b', 'UTF-8')
],
body => $mail->{'Data'},
body => Encode::encode( utf8 => $mail->{'Data'} ),
);
Email::Sender::Simple->send($email);
}

View File

@@ -145,6 +145,7 @@ sub sendToken ($$) {
mail::send(
{
"From" => $config->{locations}->{email},
"To" => $user->{email},
"Subject" => "request to change password for $baseUrl",
"Data" => $content