. */ declare(strict_types=1); namespace FireflyIII\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; /** * Class AccessTokenCreatedMail */ class AccessTokenCreatedMail extends Mailable { use Queueable, SerializesModels; /** @var string Email address of admin */ public $email; /** @var string IP address of admin */ public $ipAddress; /** * AccessTokenCreatedMail 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.access-token-created-html')->text('emails.access-token-created-text') ->subject('A new access token was created'); } }