1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
invoiceninja/app/Mail/TestMailServer.php

48 lines
1.1 KiB
PHP
Raw Normal View History

<?php
2020-08-06 05:04:09 +02:00
/**
* Invoice Ninja (https://invoiceninja.com).
2020-08-06 05:04:09 +02:00
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @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
*/
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class TestMailServer extends Mailable
{
// use Queueable, SerializesModels;
2021-07-21 12:00:42 +02:00
public $support_messages;
public $from_email;
2021-07-21 12:00:42 +02:00
public function __construct($support_messages, $from_email)
{
2021-07-21 12:00:42 +02:00
$this->support_messages = $support_messages;
$this->from_email = $from_email;
}
/**
* Test Server mail.
*
* @return $this
*/
public function build()
{
return $this->from(config('mail.from.address'), config('mail.from.name'))
->subject(ctrans('texts.email'))
->markdown('email.support.message', [
2021-07-21 12:00:42 +02:00
'support_message' => $this->support_messages,
'system_info' => '',
'laravel_log' => [],
]);
}
}