Commits vergleichen
2 Commits
5ffc456b15
...
e97ed66758
Autor | SHA1 | Datum | |
---|---|---|---|
e97ed66758 | |||
1767e83645 |
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
|
@ -123,16 +123,16 @@ function enwiSendMailSmtp(string $html, string $subject, array $recipients, arra
|
|||
if (isset($recipients[0]) && is_array($recipients[0])) {
|
||||
for ($i = 0, $n = count($recipients); $i < $n; $i ++) {
|
||||
if (strlen($recipients[$i]['email'])) {
|
||||
$mail->AddAddress($recipients[$i]['email'], ((strlen($recipients[$i]['name'])) ? html_entity_decode($recipients[$i]['name'], ENT_QUOTES, $encoding) : $recipients[$i]['email']));
|
||||
$mail->AddAddress($recipients[$i]['email'], ((strlen($recipients[$i]['name']) > 0) ? html_entity_decode($recipients[$i]['name'], ENT_QUOTES, $encoding) : $recipients[$i]['email']));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$mail->AddAddress($recipients['email'], ((strlen($recipients['name'])) ? html_entity_decode($recipients['name'], ENT_QUOTES, $encoding) : $recipients['email']));
|
||||
$mail->AddAddress($recipients['email'], ((strlen($recipients['name']) > 0) ? html_entity_decode($recipients['name'], ENT_QUOTES, $encoding) : $recipients['email']));
|
||||
}
|
||||
|
||||
// set replyto if needed
|
||||
if(filter_var($fromEmail, FILTER_VALIDATE_EMAIL)) {
|
||||
$fromName = (strlen($fromName) > 0)?$fromName:'';
|
||||
$fromName = (strlen($fromName) > 0)?$fromName:$fromEmail;
|
||||
$mail->addReplyTo($fromEmail, $fromName);
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<copyright>PHP-Backoffice.de</copyright>
|
||||
<mail>info@php-backoffice.de.de</mail>
|
||||
<website>https://php-backoffice.de</website>
|
||||
<version>1.0.0</version>
|
||||
<version>1.1.0</version>
|
||||
</general>
|
||||
<requirements php="8.0.0">
|
||||
<contenido minversion="4.10.1" />
|
||||
|
|
Laden …
In neuem Issue referenzieren