Home / Function/ isSmtpEnabled() — supabase Function Reference

isSmtpEnabled() — supabase Function Reference

Architecture documentation for the isSmtpEnabled() function in SmtpForm.utils.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  9782c537_571a_9c24_d6c8_b1ee414b08a5["isSmtpEnabled()"]
  4d7d283b_a391_4628_637f_95658194dcbc["RateLimits()"]
  4d7d283b_a391_4628_637f_95658194dcbc -->|calls| 9782c537_571a_9c24_d6c8_b1ee414b08a5
  1b4f5ba4_56f1_a45b_744d_125c5b3f5a1a["SmtpForm()"]
  1b4f5ba4_56f1_a45b_744d_125c5b3f5a1a -->|calls| 9782c537_571a_9c24_d6c8_b1ee414b08a5
  27132dab_dd90_85af_da0b_aff68953e99c["generateFormValues()"]
  27132dab_dd90_85af_da0b_aff68953e99c -->|calls| 9782c537_571a_9c24_d6c8_b1ee414b08a5
  style 9782c537_571a_9c24_d6c8_b1ee414b08a5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/Auth/SmtpForm/SmtpForm.utils.ts lines 9–18

export const isSmtpEnabled = (config?: Partial<AuthConfig>): boolean => {
  return !!(
    config?.SMTP_ADMIN_EMAIL &&
    config?.SMTP_SENDER_NAME &&
    config?.SMTP_USER &&
    config?.SMTP_HOST &&
    config?.SMTP_PORT &&
    (config?.SMTP_MAX_FREQUENCY ?? 0) >= 0
  )
}

Subdomains

Frequently Asked Questions

What does isSmtpEnabled() do?
isSmtpEnabled() is a function in the supabase codebase.
What calls isSmtpEnabled()?
isSmtpEnabled() is called by 3 function(s): RateLimits, SmtpForm, generateFormValues.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free