wip
This commit is contained in:
1 parent
9e1bc40d9f
commit
3806df2a00
4 files changed
+43
-23
No files matched your search
@@ -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'],
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user