. */ declare(strict_types=1); namespace FireflyIII\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; /** * Class AdminTestMail. * * Sends a test mail to administrators. * @codeCoverageIgnore */ class AdminTestMail extends Mailable { use Queueable, SerializesModels; /** @var string Email address of admin */ public $email; /** @var string IP address of admin */ public $ipAddress; /** * ConfirmEmailChangeMail constructor. * * @param string $email * @param string $ipAddress */ public function __construct(string $email, string $ipAddress) { $this->email = $email; $this->ipAddress = $ipAddress; } /** * Build the message. * * @return $this */ public function build(): self { return $this->view('emails.admin-test-html')->text('emails.admin-test-text') ->subject('A test message from your Firefly III installation'); } }