From bc54c8c31e7f50a7a365f9b4d22fe8c74a29f61a Mon Sep 17 00:00:00 2001
From: Thomas Vanbesien
' . htmlspecialchars($url) . '
' + . 'If you did not create an account, ignore this email.
'; + + return self::send($to, $subject, $body); + } + + public static function sendPasswordReset(string $to, string $token): bool + { + $url = getenv('APP_URL') . '/reset-password?token=' . urlencode($token); + $subject = 'Camagru — Reset your password'; + $body = 'Click the link below to reset your password:
' + . '' . htmlspecialchars($url) . '
' + . 'This link expires in 1 hour.
' + . 'If you did not request a password reset, ignore this email.
'; + + return self::send($to, $subject, $body); + } +} -- cgit v1.2.3