Revision dbda14c2
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/Mailer/Sendmail.pm | ||
---|---|---|
18 | 18 |
|
19 | 19 |
Rose::Object::init(@_); |
20 | 20 |
|
21 |
my $email = $::locale->is_utf8 ? Encode::encode('utf-8', $self->myconfig->{email}) : $self->myconfig->{email};
|
|
21 |
my $email = Encode::encode('utf-8', $self->myconfig->{email});
|
|
22 | 22 |
$email =~ s/[^\w\.\-\+=@]//ig; |
23 | 23 |
|
24 | 24 |
my %temp_form = ( %{ $self->form }, myconfig_email => $email ); |
... | ... | |
27 | 27 |
$sendmail = $template->parse_block($sendmail); |
28 | 28 |
|
29 | 29 |
$self->{sendmail} = IO::File->new("|$sendmail") || die "sendmail($sendmail): $!"; |
30 |
$self->{sendmail}->binmode(':utf8') if $::locale->is_utf8;
|
|
30 |
$self->{sendmail}->binmode(':utf8'); |
|
31 | 31 |
} |
32 | 32 |
|
33 | 33 |
sub start_mail { |
Auch abrufbar als: Unified diff
Unterstützung für andere Datenbankencodings als Unicode/UTF-8 entfernt