isCustomSmtpEnabled (hooks/smtp.ts)

appwrite · apps/console/src/lib/react-query/hooks/smtp.ts · typescript · BSD-3-Clause
email

React Query hooks to manage SMTP settings and status in a project.

// Source: https://github.com/appwrite/appwrite | License: BSD-3-Clause | Copyright 2019 Appwrite (https://appwrite.io) and individual contributors
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * React Query hooks for SMTP
 *
 * Handles SMTP settings updates and reading custom SMTP status via project-scoped APIs.
 */

import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
import { queryOptions } from '@tanstack/react-query'
import { ProjectSMTPSecure, type Models } from '@appwrite.io/console'
import { sdk } from '@/lib/appwrite/sdk'
import { fetchProjectById } from '@/lib/project-settings'
import { Dependencies } from './dependencies'
import { LONG_STALE_TIME } from './constants'

export function isCustomSmtpEnabled(
  project: Models.Project 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key