Revision bdbe2ca0
Von Martin Helmling martin.helmling@octosoft.eu vor mehr als 7 Jahren hinzugefügt
SL/BackgroundJob/CreatePeriodicInvoices.pm | ||
---|---|---|
404 | 404 |
$mail->{subject} = $data->{config}->email_subject; |
405 | 405 |
$mail->{message} = $data->{config}->email_body; |
406 | 406 |
$mail->{attachments} = [{ |
407 |
filename => $pdf_file_name,
|
|
407 |
path => $pdf_file_name,
|
|
408 | 408 |
name => sprintf('%s %s.pdf', $::locale->text('Invoice'), $data->{invoice}->invnumber), |
409 | 409 |
}]; |
410 | 410 |
|
SL/Mailer.pm | ||
---|---|---|
162 | 162 |
$attachment_content ||= ' '; |
163 | 163 |
$attributes{charset} = $self->{charset} if $self->{charset} && ($attributes{content_type} =~ m{^text/}); |
164 | 164 |
|
165 |
$::lxdebug->message(LXDebug->DEBUG2(), "mail6 mtype=" . $attributes{Type} . " filename=" . $attributes{Filename});
|
|
165 |
$::lxdebug->message(LXDebug->DEBUG2(), "mail6 mtype=" . $attributes{content_type} . " filename=" . $attributes{filename});
|
|
166 | 166 |
|
167 | 167 |
my $ent; |
168 | 168 |
if ( $attributes{content_type} eq 'message/rfc822' ) { |
... | ... | |
247 | 247 |
#$::lxdebug->message(0, "message: " . $email->as_string); |
248 | 248 |
# return "boom"; |
249 | 249 |
|
250 |
$::lxdebug->message(LXDebug->DEBUG2(), "mail1 from=".$self->{from}." to=".$self->{to}); |
|
250 | 251 |
my $from_obj = (Email::Address->parse($self->{from}))[0]; |
251 | 252 |
|
252 | 253 |
$self->{driver}->start_mail(from => $from_obj->address, to => [ $self->_all_recipients ]); |
Auch abrufbar als: Unified diff
PDFs werden nicht mehr bei wiederkehrenden Rechnung per E-Mail erzeugt/angehangen
fix redmine #238