Fix CyberMail payload format: use flat string for from/to fields

This commit is contained in:
2026-05-29 18:58:35 +00:00
parent 76bf967bd0
commit 4f096047b6
2 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -58,8 +58,8 @@ class Email {
public function send(string $to, string $subject, string $html, ?string $text = null, array $options = []): array {
$payload = array_merge([
'from' => ['email' => $this->fromEmail, 'name' => getSetting('cybermail_from_name', "Tom's Java Jive")],
'to' => [['email' => $to]],
'from' => $this->fromEmail,
'to' => $to,
'subject' => $subject,
'html' => $html,
], $options);