. */ declare(strict_types=1); namespace FireflyIII\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; /** * Sends user link for new password. * Class RequestedNewPassword * * @codeCoverageIgnore */ class RequestedNewPassword extends Mailable { use Queueable, SerializesModels; /** @var string IP address of user */ public $ipAddress; /** @var string URI of password change link */ public $url; /** * RequestedNewPassword constructor. * * @param string $url * @param string $ipAddress */ public function __construct(string $url, string $ipAddress) { $this->url = $url; $this->ipAddress = $ipAddress; } /** * Build the message. * * @return $this */ public function build(): self { return $this->view('emails.password-html')->text('emails.password-text')->subject((string) trans('email.reset_pw_subject')); } }