2017-04-27 08:03:15 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
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!');
|
|
|
|
}
|
|
|
|
}
|