mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-30 04:33:54 -06:00
50 lines
1.1 KiB
PHP
50 lines
1.1 KiB
PHP
|
<?php
|
||
|
|
||
|
namespace FireflyIII\Mail;
|
||
|
|
||
|
use Illuminate\Bus\Queueable;
|
||
|
use Illuminate\Mail\Mailable;
|
||
|
use Illuminate\Queue\SerializesModels;
|
||
|
|
||
|
class ConfirmEmailChangeMail extends Mailable
|
||
|
{
|
||
|
use Queueable, SerializesModels;
|
||
|
|
||
|
/** @var string */
|
||
|
public $ipAddress;
|
||
|
/** @var string */
|
||
|
public $newEmail;
|
||
|
/** @var string */
|
||
|
public $oldEmail;
|
||
|
/** @var string */
|
||
|
public $uri;
|
||
|
|
||
|
/**
|
||
|
* ConfirmEmailChangeMail constructor.
|
||
|
*
|
||
|
* @param string $newEmail
|
||
|
* @param string $oldEmail
|
||
|
* @param string $uri
|
||
|
* @param string $ipAddress
|
||
|
*/
|
||
|
public function __construct(string $newEmail, string $oldEmail, string $uri, string $ipAddress)
|
||
|
{
|
||
|
|
||
|
$this->newEmail = $newEmail;
|
||
|
$this->oldEmail = $oldEmail;
|
||
|
$this->uri = $uri;
|
||
|
$this->ipAddress = $ipAddress;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Build the message.
|
||
|
*
|
||
|
* @return $this
|
||
|
*/
|
||
|
public function build()
|
||
|
{
|
||
|
return $this->view('emails.confirm-email-change-html')->text('emails.confirm-email-change-text')
|
||
|
->subject('Your Firefly III email address has changed.');
|
||
|
}
|
||
|
}
|