Revision 56ed2f3a
Von Moritz Bunkus vor mehr als 7 Jahren hinzugefügt
SL/Form.pm | ||
---|---|---|
1199 | 1199 |
$mail->{message} =~ s/\r//g; |
1200 | 1200 |
$mail->{message} .= $full_signature; |
1201 | 1201 |
$self->{emailerr} = $mail->send(); |
1202 |
# $self->error($self->cleanup . "$err") if $self->{emailerr}; |
|
1202 |
|
|
1203 |
if ($self->{emailerr}) { |
|
1204 |
$self->cleanup; |
|
1205 |
$self->error($::locale->text('The email was not sent due to the following error: #1.', $self->{emailerr})); |
|
1206 |
} |
|
1207 |
|
|
1203 | 1208 |
$self->{email_journal_id} = $mail->{journalentry}; |
1204 | 1209 |
$self->{snumbers} = "emailjournal" . "_" . $self->{email_journal_id}; |
1205 | 1210 |
$self->{what_done} = $::form->{type}; |
SL/Mailer.pm | ||
---|---|---|
225 | 225 |
$self->_store_in_journal('failed', 'driver could not be created; check your configuration & log files'); |
226 | 226 |
$::lxdebug->message(LXDebug::WARN(), "Mailer error during 'send': $error"); |
227 | 227 |
|
228 |
return "send email : $error";
|
|
228 |
return $error;
|
|
229 | 229 |
} |
230 | 230 |
|
231 | 231 |
# Set defaults & headers |
... | ... | |
264 | 264 |
|
265 | 265 |
$self->{journalentry} = $self->_store_in_journal; |
266 | 266 |
|
267 |
return $ok ? '' : "send email: $error";
|
|
267 |
return $ok ? '' : ($error || "undefined error");
|
|
268 | 268 |
} |
269 | 269 |
|
270 | 270 |
sub _all_recipients { |
locale/de/all | ||
---|---|---|
3014 | 3014 |
'The documents have been sent to the printer \'#1\'.' => 'Die Dokumente sind zum Drucker \'#1\' geschickt', |
3015 | 3015 |
'The dunnings have been printed.' => 'Die Mahnung(en) wurden gedruckt.', |
3016 | 3016 |
'The email has been sent.' => 'Die E-Mail wurde verschickt.', |
3017 |
'The email was not sent due to the following error: #1.' => 'Die E-Mail wurde aufgrund des folgenden Fehlers nicht verschickt: #1', |
|
3017 | 3018 |
'The employee is missing.' => 'Der Bearbeiter fehlt.', |
3018 | 3019 |
'The end date is the last day for which invoices will possibly be created.' => 'Das Enddatum ist das letztmögliche Datum, an dem eine Rechnung erzeugt wird.', |
3019 | 3020 |
'The execution schedule is invalid.' => 'Der Ausführungszeitplan ist ungültig.', |
Auch abrufbar als: Unified diff
E-Mail: Versandfehler oben auch anzeigen