X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/05e0e8ca1544e1ca706a99e51f9caf9a2f56f6af..38fcf5b43ddbcde995d1fe1c486c0fd49290627c:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index 5424a7c92..644b9dbea 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1212,9 +1212,9 @@ sub send_email { } } foreach my $attfile ( @attfiles ) { - push @{ $mail->{attachments} }, { path => $attfile->get_file, + push @{ $mail->{attachments} }, { path => SL::File->get_file_path(dbfile => $attfile), id => $attfile->id, - type => $attfile->mime_type, + type => $attfile->file_mime_type, name => $attfile->file_name }; } }