diff --git a/src/controllers/Password.php b/src/controllers/Password.php index 3f0f728..03de1de 100644 --- a/src/controllers/Password.php +++ b/src/controllers/Password.php @@ -40,22 +40,22 @@ public function __construct() */ private function sendResetEmail(string $email, string $resetLink): void { - $subject = "Reset Your Password | Steamy Sips"; + $subject = "Reset Your Password | Steamy Sips"; - // Capture the HTML template content - ob_start(); - $userEmail = $email; - require __DIR__ . '/../views/mails/PasswordReset.php'; - $htmlMessage = ob_get_clean(); + // Capture the HTML template content + ob_start(); + $userEmail = $email; + require __DIR__ . '/../views/mails/PasswordReset.php'; + $htmlMessage = ob_get_clean(); - // Plain message as fallback - $plainMessage = "Click the link below to reset your password:\n$resetLink"; + // Plain message as fallback + $plainMessage = "Click the link below to reset your password:\n$resetLink"; - // Send the email - $mailer = new Mailer(); - $mailer->sendMail($email, $subject, $htmlMessage, $plainMessage); + // Send the email + $mailer = new Mailer(); + $mailer->sendMail($email, $subject, $htmlMessage, $plainMessage); } - + /** * Invoked when user submits an email on form. * @throws Exception Email could not be sent diff --git a/src/views/mails/PasswordReset.php b/src/views/mails/PasswordReset.php index 2120f77..9cddb85 100644 --- a/src/views/mails/PasswordReset.php +++ b/src/views/mails/PasswordReset.php @@ -19,71 +19,80 @@ Reset Your Password -
-
- Steamy Sips Logo -
-
-

Reset Your Password

-

Hello,

-

We received a request to reset the password for the account associated with . Click the button below to reset your password:

-

Reset My Password

-

If you did not request a password reset, please ignore this email. This link will expire in 24 hours.

-

Thank you,
The Steamy Sips Team

-
- +
+
+ Steamy Sips Logo +
+
+

Reset Your Password

+

Hello,

+

We received a request to reset the password for the account associated with . Click the button below to reset your password:

+

Reset My Password

+

If you did not request a password reset, please ignore this email. This link will expire in 24 hours.

+

Thank you,
The Steamy Sips Team

+
+ +