2020-05-16 04:04:24 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2020-09-06 11:38:10 +02:00
|
|
|
* Invoice Ninja (https://invoiceninja.com).
|
2020-05-16 04:04:24 +02:00
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
2024-04-12 06:15:41 +02:00
|
|
|
* @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
|
2020-05-16 04:04:24 +02:00
|
|
|
*
|
2021-06-16 08:58:16 +02:00
|
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
2020-05-16 04:04:24 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\Mail\Admin;
|
|
|
|
|
|
|
|
use Illuminate\Mail\Mailable;
|
2024-02-13 05:25:18 +01:00
|
|
|
|
2024-01-29 07:45:22 +01:00
|
|
|
//@deprecated?
|
2020-05-19 00:22:18 +02:00
|
|
|
class EntityNotificationMailer extends Mailable
|
2020-05-16 04:04:24 +02:00
|
|
|
{
|
|
|
|
public $mail_obj;
|
2020-05-19 00:22:18 +02:00
|
|
|
|
2020-05-16 04:04:24 +02:00
|
|
|
/**
|
|
|
|
* Create a new message instance.
|
|
|
|
*
|
2020-10-28 11:10:49 +01:00
|
|
|
* @param $mail_obj
|
2020-05-16 04:04:24 +02:00
|
|
|
*/
|
|
|
|
public function __construct($mail_obj)
|
|
|
|
{
|
|
|
|
$this->mail_obj = $mail_obj;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Build the message.
|
|
|
|
*
|
|
|
|
* @return $this
|
|
|
|
*/
|
|
|
|
public function build()
|
|
|
|
{
|
2020-12-02 04:08:35 +01:00
|
|
|
return $this->from(config('mail.from.address'), config('mail.from.name'))
|
2020-05-16 04:04:24 +02:00
|
|
|
->subject($this->mail_obj->subject)
|
2023-02-19 23:21:21 +01:00
|
|
|
->markdown($this->mail_obj->markdown, $this->mail_obj->data);
|
2020-05-16 04:04:24 +02:00
|
|
|
}
|
|
|
|
}
|