2020-03-18 10:40:15 +01:00
|
|
|
<?php
|
2020-08-06 05:04:09 +02:00
|
|
|
/**
|
2020-09-06 11:38:10 +02:00
|
|
|
* Invoice Ninja (https://invoiceninja.com).
|
2020-08-06 05:04:09 +02:00
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
2021-01-03 22:54:54 +01:00
|
|
|
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
|
2020-08-06 05:04:09 +02:00
|
|
|
*
|
2021-06-16 08:58:16 +02:00
|
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
2020-08-06 05:04:09 +02:00
|
|
|
*/
|
2020-03-18 10:40:15 +01:00
|
|
|
|
|
|
|
namespace App\Mail;
|
|
|
|
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
use Illuminate\Mail\Mailable;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
class TestMailServer extends Mailable
|
|
|
|
{
|
2021-02-11 13:35:46 +01:00
|
|
|
// use Queueable, SerializesModels;
|
2020-03-18 10:40:15 +01:00
|
|
|
|
2021-07-21 12:00:42 +02:00
|
|
|
public $support_messages;
|
2020-03-18 10:40:15 +01:00
|
|
|
|
|
|
|
public $from_email;
|
|
|
|
|
2021-07-21 12:00:42 +02:00
|
|
|
public function __construct($support_messages, $from_email)
|
2020-03-18 10:40:15 +01:00
|
|
|
{
|
2021-07-21 12:00:42 +02:00
|
|
|
$this->support_messages = $support_messages;
|
2020-03-18 10:40:15 +01:00
|
|
|
$this->from_email = $from_email;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-09-06 11:38:10 +02:00
|
|
|
* Test Server mail.
|
2020-03-18 10:40:15 +01:00
|
|
|
*
|
|
|
|
* @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-03-18 10:40:15 +01:00
|
|
|
->subject(ctrans('texts.email'))
|
|
|
|
->markdown('email.support.message', [
|
2021-07-21 12:00:42 +02:00
|
|
|
'support_message' => $this->support_messages,
|
2020-03-18 10:40:15 +01:00
|
|
|
'system_info' => '',
|
2020-09-06 11:38:10 +02:00
|
|
|
'laravel_log' => [],
|
2020-03-18 10:40:15 +01:00
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|