Upload via GUI (346 Dateien)
This commit is contained in:
@@ -188,7 +188,7 @@ function email_address_send_test(PDO $pdo, int $id, string $recipient): string
|
||||
$from = $addr['label'] ? "{$addr['label']} <{$addr['email']}>" : $addr['email'];
|
||||
$via = $addr['smtp_enabled'] ? 'eigenen SMTP-Server' : 'globalen SMTP-Server';
|
||||
$html = '<p>Dies ist eine Test-Mail von DeskHub.</p><p>Absender: ' . e($addr['email']) . '<br>Versand über: ' . e($via) . '</p>';
|
||||
if (!send_mail($recipient, 'DeskHub – Test-Mail von ' . $addr['email'], $html, $from)) {
|
||||
if (!send_mail($recipient, 'DeskHub – Test-Mail von ' . $addr['email'], $html, $from, false)) {
|
||||
throw new EmailAddressException('Versand fehlgeschlagen. Bitte SMTP-Daten prüfen. ' . smtp_last_error(), 'MAIL_FAILED', 502);
|
||||
}
|
||||
return "Test-Mail von {$addr['email']} an {$recipient} gesendet (über {$via}).";
|
||||
|
||||
Reference in New Issue
Block a user