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
|
|
|
*
|
|
|
|
* @license https://opensource.org/licenses/AAL
|
|
|
|
*/
|
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
|
|
|
|
|
|
|
public $message;
|
|
|
|
|
|
|
|
public $from_email;
|
|
|
|
|
|
|
|
public function __construct($message, $from_email)
|
|
|
|
{
|
|
|
|
$this->message = $message;
|
|
|
|
$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', [
|
|
|
|
'message' => $this->message,
|
|
|
|
'system_info' => '',
|
2020-09-06 11:38:10 +02:00
|
|
|
'laravel_log' => [],
|
2020-03-18 10:40:15 +01:00
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|