2017-04-27 08:03:15 +02:00
|
|
|
<?php
|
|
|
|
|
2017-08-11 05:36:05 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* RegisteredUser.php
|
|
|
|
* Copyright (c) 2017 thegrumpydictator@gmail.com
|
|
|
|
* This software may be modified and distributed under the terms of the
|
|
|
|
* Creative Commons Attribution-ShareAlike 4.0 International License.
|
|
|
|
*
|
|
|
|
* See the LICENSE file for details.
|
|
|
|
*/
|
|
|
|
|
2017-04-27 08:03:15 +02:00
|
|
|
namespace FireflyIII\Mail;
|
|
|
|
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
use Illuminate\Mail\Mailable;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
class RegisteredUser extends Mailable
|
|
|
|
{
|
|
|
|
use Queueable, SerializesModels;
|
|
|
|
/** @var string */
|
|
|
|
public $address;
|
|
|
|
/** @var string */
|
2017-06-07 11:13:04 +02:00
|
|
|
public $ipAddress;
|
2017-04-27 08:03:15 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new message instance.
|
|
|
|
*
|
2017-06-05 08:31:22 +02:00
|
|
|
* @param string $address
|
2017-06-07 11:13:04 +02:00
|
|
|
* @param string $ipAddress
|
2017-04-27 08:03:15 +02:00
|
|
|
*/
|
2017-06-07 11:13:04 +02:00
|
|
|
public function __construct(string $address, string $ipAddress)
|
2017-04-27 08:03:15 +02:00
|
|
|
{
|
2017-07-07 08:09:42 +02:00
|
|
|
$this->address = $address;
|
|
|
|
$this->ipAddress = $ipAddress;
|
2017-04-27 08:03:15 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Build the message.
|
|
|
|
*
|
|
|
|
* @return $this
|
|
|
|
*/
|
|
|
|
public function build()
|
|
|
|
{
|
|
|
|
return $this->view('emails.registered-html')->text('emails.registered-text')->subject('Welcome to Firefly III!');
|
|
|
|
}
|
|
|
|
}
|