<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $user common\models\User */
$resetLink = Yii::$app->urlManager->createAbsoluteUrl(['site/reset-password', 'token' => $user->password_reset_token]);
$supportEmail = "noreply@kaubaplats.ee";
$supportPhone = "+123456789";
?>
<div class="mail">
<div class="mail-content">
<div class="mail-message">
<div class="mail-title">
Password Reset
</div>
<div class="mail-iqonImg">
<img class="mail-iqon-img" src="https://kaubaplats.ee/images/mail/passwordreset.png"
alt="here must be image">
</div>
<div class="mail-message-title">Hello <?= Html::encode($user->username) ?>,</div>
<div class="mail-message-text">
<p>
This email is to confirm that your password has been successfully reset for your account. Your
security is our priority,
and we are committed to ensuring the confidentiality of your information.
If you did not request this password reset, please contact our support team immediately at
<?= Html::encode($supportEmail) ?> or <?= Html::encode($supportPhone) ?>.
We take any unauthorized access very seriously and will investigate promptly.
</p>
</div>
<div class="mail-message-button">
<?= Html::a('Reset password', $resetLink, ['class' => 'button']) ?>
</div>
<div class="mail-message-subtitle">
<p>If you didn’t request this, you can ignore this email or let us know. Your password won’t change
until</p>
you create a new password.
</div>
</div>
</div>
<div class="mail-footer">
<div class="mail-footer-content">
<div class="mail-footer-address">
Copyright © <?= date('Y'); ?>. Development by Alliance of Finance OÜ.
</div>
<div class="mail-footer-links">
<a class="mail-footer-contact" href="#"><img src="https://kaubaplats.ee/images/mail/passwordtest.png"
alt=""></a>
<a class="mail-footer-contact" href="#"><i class="fa-solid fa-envelope fa-lg"
style="color: white;"></i></a>
<a class="mail-footer-contact" href="#"><i class="fa-brands fa-telegram fa-lg"
style="color: white;"></i></a>
</div>
</div>
</div>
</div>
<?php
use frontend\assets\EmailAsset;
use yii\helpers\Html;
/* @var $this \yii\web\View view component instance */
/* @var $message \yii\mail\MessageInterface the message being composed */
/* @var $content string main view render result */
EmailAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?= Yii::$app->charset ?>" />
<title><?= Html::encode($this->title) ?></title>
<?php $this->head() ?>
<style>
.mail {
max-width: 600px;
background-color: #F0F0F0;
border-radius: 0.5rem;
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
padding: 1.5rem;
}
.mail-title {
text-align: center;
font-size: 1.75rem;
line-height: 1.1;
color: #333;
font-weight: 400;
font-family: 'Roboto', sans-serif;
margin-bottom: 1.0rem;
}
.mail-content {
text-align: center;
margin-bottom: 2rem;
max-width: 600px;
margin: 2rem auto;
background-color: #fff;
border-radius: 0.5rem;
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
padding: 2rem;
}
.mail-message-text {
font-size: 1rem;
color: #333;
direction: ltr;
font-size: 15px;
font-weight: 400;
letter-spacing: 0;
line-height: 150%;
text-align: justify;
}
.mail-message-title {
margin-bottom: 1.5rem;
font-weight: bold;
font-size: 1.25rem;
text-align: center;
line-height: 1.1;
color: #333;
font-weight: 400;
margin-bottom: 1.0rem;
}
.mail-message-subtitle {
font-size: 0.875rem;
color: #666;
margin-top: 2rem;
margin-bottom: 2rem;
}
.mail-footer {
text-align: center;
border-top: 0.0625rem solid #eaeaea;
margin-top: 2rem;
}
.mail-footer a {
color: #3869d4;
text-decoration: none;
font-size: 0.875rem;
margin-bottom: 0.5rem;
display: inline-block;
}
.mail-footer-address {
font-size: 0.875rem;
color: #999;
margin-bottom: 1rem;
}
.mail-message-button {
margin-top: 1.5rem;
}
.mail-message-button a {
padding: 10px 25px;
background-color: #0099cc;
color: #fff;
border-radius: 3px;
text-decoration: none;
font-size: 1rem;
}
.mail-iqon {
display: flex;
justify-content: center;
}
.mail-iqon-img {
width: 130px;
}
.mail-Web-Page a {
color: #0099cc;
}
.mail-footer-contact {
padding: 5px 10px;
border: 2px solid #0099cc;
background-color: #0099cc;
margin-right: 10px;
border-radius: 5px;
width: 20px;
}
.icon {
width: 24px;
height: 24px;
fill: #333;
}
</style>
</head>
<body>
<?php $this->beginBody() ?>
<?= $content ?>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>