invoiceninja/app/Mail/TestMailServer.php
David Bomba 4c23d43138
Working on Setup workflow (#3509)
* Refactor designs to remove whitespace

* enable dummy data for templating

* Insert faker data into templates

* Fixes for user deletion

* Documentation on User controller:

* Working on app setup

* Files for app setup

* Working on Setup

* Final fixes for setup controller

* Fixes for setup

* Fixes for first install

* Minor fixes
2020-03-18 20:40:15 +11:00

43 lines
922 B
PHP

<?php
namespace App\Mail;
use App\Utils\Ninja;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class TestMailServer extends Mailable
{
use Queueable, SerializesModels;
public $message;
public $from_email;
public function __construct($message, $from_email)
{
$this->message = $message;
$this->from_email = $from_email;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->from($this->from_email) //todo this needs to be fixed to handle the hosted version
->subject(ctrans('texts.email'))
->markdown('email.support.message', [
'message' => $this->message,
'system_info' => '',
'laravel_log' => []
]);
}
}