This commit is contained in:
salam committed 2026-05-08 11:13:49 +02:00
1 parent 9e1bc40d9f
commit 3806df2a00
4 files changed
+43 -23

No files matched your search

+5 -5
View File
@@ -13,14 +13,14 @@ class Newsletter extends Mailable
{
use Queueable, SerializesModels;
public $mail_data;
public $data;
/**
* Create a new message instance.
*/
public function __construct($mail_data)
public function __construct($data)
{
$this->mail_data = $mail_data;
$this->data = $data;
}
/**
@@ -29,8 +29,8 @@ class Newsletter extends Mailable
public function envelope(): Envelope
{
return new Envelope(
from: new Address($this->mail_data->absender_email, $this->mail_data->absender_name),
subject: $this->mail_data->subjekt,
from: new Address($this->data['absender_email'], $this->data['absender_name']),
subject: $this->data['subjekt'],
);
}