X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FForm.pm;h=5424a7c923cbd2e6812b59471d953208c058ddeb;hb=3f89fa90275e5df9b806ca4f8abe447af83a3362;hp=644b9dbead7a36222070f265990105ef14216533;hpb=38fcf5b43ddbcde995d1fe1c486c0fd49290627c;p=kivitendo-erp.git diff --git a/SL/Form.pm b/SL/Form.pm index 644b9dbea..5424a7c92 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1212,9 +1212,9 @@ sub send_email { } } foreach my $attfile ( @attfiles ) { - push @{ $mail->{attachments} }, { path => SL::File->get_file_path(dbfile => $attfile), + push @{ $mail->{attachments} }, { path => $attfile->get_file, id => $attfile->id, - type => $attfile->file_mime_type, + type => $attfile->mime_type, name => $attfile->file_name }; } }