Click the link below to verify your email address:
' . '' . htmlspecialchars($url) . '
' . 'If you did not create an account, ignore this email.
'; return self::send($to, $subject, $body); } public static function sendCommentNotification(string $to, string $commenterUsername, int $postId): bool { $url = getenv('APP_URL') . '/gallery#post-' . $postId; $subject = 'Camagru — New comment on your post'; $body = '' . htmlspecialchars($commenterUsername) . ' commented on your post.
' . ''; 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); } }